MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / from_settings

Method from_settings

api/oauth2_metadata/dataclasses.py:18–24  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

16
17 @classmethod
18 def from_settings(cls) -> OAuthConfig:
19 oauth2_provider: dict[str, Any] = settings.OAUTH2_PROVIDER
20 return cls(
21 api_url=settings.FLAGSMITH_API_URL.rstrip("/"),
22 frontend_url=settings.FLAGSMITH_FRONTEND_URL.rstrip("/"),
23 scopes=oauth2_provider.get("SCOPES", {}),
24 )

Callers 2

get_schemaMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected