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

[Question] Add scopes to redoc and swagger? #196

Closed
mattias-de-coninck-ad opened this issue Jun 12, 2024 · 1 comment
Closed

[Question] Add scopes to redoc and swagger? #196

mattias-de-coninck-ad opened this issue Jun 12, 2024 · 1 comment
Labels
question Further information is requested

Comments

@mattias-de-coninck-ad
Copy link

To programmatically access FastAPI the OAuth 2.0 client credential flow is used in order to get a token for making requests to the app. In line with the documentation (https://intility.github.io/fastapi-azure-auth/usage-and-faq/calling_your_apis_from_python
) the application should be called using the following scope: api://{settings.APP_CLIENT_ID}/.default. However when viewing both the swagger and redoc documentation it seems to indicate that the api://{settings.APP_CLIENT_ID}/user_impersonation scopes needs to be used. Is there any way that we can modify this behaviour?

image

@mattias-de-coninck-ad mattias-de-coninck-ad added the question Further information is requested label Jun 12, 2024
@JonasKs
Copy link
Member

JonasKs commented Jun 12, 2024

You chose what scopes should be available yourself. See example here

@JonasKs JonasKs changed the title [BUG/Question] Wrong scope in redoc and swagger? [Question] Add scopes to redoc and swagger? Jun 12, 2024
@JonasKs JonasKs closed this as completed Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants