-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add scope to documentation #159
Add scope to documentation #159
Conversation
just did a quick scan, I think it misses setting the default scope during FastAPI.app instantiation, see bottom part here #106 (comment) |
@@ -185,23 +185,46 @@ We've used two flags: `usePkceWithAuthorizationCodeGrant`, which is the authenti | |||
|
|||
Now, the fun part begins! 🚀 | |||
|
|||
Import the `SingleTenantAzureAuthorizationCodeBearer` from `fastapi_azure_auth` and configure it: | |||
Import the `SingleTenantAzureAuthorizationCodeBearer` from `fastapi_azure_auth` and configure it. You can use the `Settings` class to compute the required URLs: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick but we also compute other properties, so maybe "... compute the required fields"
f'api://{settings.APP_CLIENT_ID}/user_impersonation': 'user_impersonation', | ||
} | ||
scopes=settings.SCOPES, | ||
openapi_authorization_url=settings.OPENAPI_AUTHORIZATION_URL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are new params added to SingleTenant not previously in the docs. I don't have much experience with Single Tenant and would refer to @JonasKs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, these should be default 99% of the time. No reason to confuse with these params. 😊
If they are required for the padlock I'd say we use the azure_scheme
s URL in the docs instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you so much 😊 |
I'm sorry for the mess! I've somehow managed to destroy my previous PR #106 and have created this one to fix the history problems. Sorry for the chaos. :(
I would appreciate if you could add the HACKTOBERFEST-ACCEPTED label to the pull request.