@@ -32,21 +32,23 @@ class HttpClientConfig(TypedDict):
3232class OpenIdConfig :
3333 def __init__ (
3434 self ,
35- tenant_id : Optional [ str ] = None ,
35+ tenant_id : str | None = None ,
3636 multi_tenant : bool = False ,
37- app_id : Optional [ str ] = None ,
38- config_url : Optional [ str ] = None ,
39- http_client_config : Optional [ HttpClientConfig ] = None ,
37+ app_id : str | None = None ,
38+ config_url : str | None = None ,
39+ http_client_config : HttpClientConfig | None = None ,
4040 ) -> None :
41- self .tenant_id : Optional [ str ] = tenant_id
42- self ._config_timestamp : Optional [ datetime ] = None
41+ self .tenant_id : str | None = tenant_id
42+ self ._config_timestamp : datetime | None = None
4343 self .multi_tenant : bool = multi_tenant
4444 self .app_id = app_id
4545 self .config_url = config_url
46- self .http_client_config : HttpClientConfig = http_client_config or HttpClientConfig ()
46+ self .http_client_config : HttpClientConfig = (
47+ http_client_config or HttpClientConfig ()
48+ )
4749
4850 self .authorization_endpoint : str
49- self .signing_keys : dict [str , ' AllowedPublicKeys' ]
51+ self .signing_keys : dict [str , AllowedPublicKeys ]
5052 self .token_endpoint : str
5153 self .issuer : str
5254
@@ -107,7 +109,7 @@ async def _load_openid_config(self) -> None:
107109 jwks_response .raise_for_status ()
108110 self ._load_keys (jwks_response .json ()['keys' ])
109111
110- def _load_keys (self , keys : List [ Dict [str , Any ]]) -> None :
112+ def _load_keys (self , keys : list [ dict [str , Any ]]) -> None :
111113 """
112114 Create certificates based on signing keys and store them
113115 """
0 commit comments