You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have existing code using client_secrets with authlib like below;
token = provider.authorize_access_token(client_secret=oauth_provider_config.client_secret)
app_provider = OAuth2Session(
oauth_provider_config.app_provider.client_id or oauth_provider_config.client_id,
oauth_provider_config.app_provider.client_secret or oauth_provider_config.client_secret or client_secret,
scope=oauth_provider_config.app_provider.scope)
app_provider.fetch_token(
oauth_provider_config.app_provider.access_token_url,
grant_type="client_credentials")
user_data = provider.parse_id_token(token)
I am moving away from client_secrets to FIC, and am wondering if I can authorize a token I got from DefaultAzureCredential? so that the remainder of the code remains unchanged and I would just pass the token from DefaultAzureCredential to the provider to use.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi All,
So I have existing code using client_secrets with authlib like below;
I am moving away from client_secrets to FIC, and am wondering if I can authorize a token I got from DefaultAzureCredential? so that the remainder of the code remains unchanged and I would just pass the token from DefaultAzureCredential to the provider to use.
Would appreciate any guidance here.
Beta Was this translation helpful? Give feedback.
All reactions