Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth2 #90

Open
dedalus2000 opened this issue Apr 4, 2023 · 1 comment
Open

OAuth2 #90

dedalus2000 opened this issue Apr 4, 2023 · 1 comment

Comments

@dedalus2000
Copy link

dedalus2000 commented Apr 4, 2023

Dear all,
It would be helpful to allow OAuth2 authentication.
For example:

# https://docs.authlib.org/en/latest/client/oauth2.html
from authlib.integrations.requests_client import OAuth2Session
client = OAuth2Session(CLIENT_ID, CLIENT_SECRET, scope=OAUTH_SCOPE)
# Redirect to Authorization Endpoint
uri, state = client.create_authorization_url(authorization_url) 
# Fetch Token
token = client.fetch_token(access_token_url, authorization_response=uri, username=saak_key, password=sask_key)
session = OAuth2Session(token=token)

Now we should be able to use the session in some ways.

It may be necessary to add a "soapheader"

@phillbaker
Copy link
Member

phillbaker commented May 2, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants