Changeset View
Changeset View
Standalone View
Standalone View
swh/auth/pytest_plugin.py
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | def __init__( | ||||
exp: Optional[int] = None, | exp: Optional[int] = None, | ||||
user_groups: List[str] = [], | user_groups: List[str] = [], | ||||
realm_permissions: List[str] = [], | realm_permissions: List[str] = [], | ||||
client_permissions: List[str] = [], | client_permissions: List[str] = [], | ||||
oidc_profile: Dict = OIDC_PROFILE, | oidc_profile: Dict = OIDC_PROFILE, | ||||
user_info: Dict = USER_INFO, | user_info: Dict = USER_INFO, | ||||
raw_realm_public_key: str = RAW_REALM_PUBLIC_KEY, | raw_realm_public_key: str = RAW_REALM_PUBLIC_KEY, | ||||
): | ): | ||||
"""Constructor | |||||
""" | |||||
super().__init__( | super().__init__( | ||||
server_url=server_url, realm_name=realm_name, client_id=client_id | server_url=server_url, realm_name=realm_name, client_id=client_id | ||||
) | ) | ||||
self.exp = exp | self.exp = exp | ||||
self.user_groups = user_groups | self.user_groups = user_groups | ||||
self.realm_permissions = realm_permissions | self.realm_permissions = realm_permissions | ||||
self.client_permissions = client_permissions | self.client_permissions = client_permissions | ||||
self._keycloak.public_key = lambda: raw_realm_public_key | self._keycloak.public_key = lambda: raw_realm_public_key | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |