-
Notifications
You must be signed in to change notification settings - Fork 3
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 optional auth tooling #8
Conversation
@vincentsarago did a bit of a refactor, it's feeling a bit cleaner. Going to try to put together some tests before marking this as ready. |
boolean) | ||
bool "$value" | ||
;; | ||
integer | number | object) |
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.
Customization added in radiantearth/stac-browser#461
@vincentsarago Hope I didn't steal your thunder, but I gave the breakout a try in aa30f7d. Feel free to suggest changes. |
58c5f59
to
4996c8b
Compare
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.
few changes I think we should do but the overall looks great
@@ -95,6 +99,10 @@ async def lifespan(app: FastAPI): | |||
docs_url="/api.html", | |||
root_path=settings.root_path, | |||
lifespan=lifespan, | |||
swagger_ui_init_oauth={ | |||
"clientId": auth_settings.client_id, |
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.
when client_id is set to ""
does Swagger understand that its unavailable?
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.
The clientId
property populates the value on the auth form's text input (docs). As such, an empty string is equivalent to null
What I am changing
How I did it
How you can test it
Related Issues