Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,6 +32,7 @@ oauth_client = OAuth2Session(client_id=OAUTH_CLIENT_ID,
|
|
| 32 |
# Use the corrected method to generate the authorization URL
|
| 33 |
authorization_url, state = oauth_client.create_authorization_url(OPENID_PROVIDER_URL + '/authorize')
|
| 34 |
|
|
|
|
| 35 |
# The rest of your OAuth flow would go here, including redirecting the user to the authorization_url,
|
| 36 |
# and then handling the redirect back to your application to exchange the code for a token.
|
| 37 |
|
|
|
|
| 32 |
# Use the corrected method to generate the authorization URL
|
| 33 |
authorization_url, state = oauth_client.create_authorization_url(OPENID_PROVIDER_URL + '/authorize')
|
| 34 |
|
| 35 |
+
print(authorization_url, state)
|
| 36 |
# The rest of your OAuth flow would go here, including redirecting the user to the authorization_url,
|
| 37 |
# and then handling the redirect back to your application to exchange the code for a token.
|
| 38 |
|