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

Add optional auth tooling #8

Merged
merged 48 commits into from
Aug 22, 2024
Merged

Add optional auth tooling #8

merged 48 commits into from
Aug 22, 2024

Conversation

alukach
Copy link
Member

@alukach alukach commented Jul 18, 2024

What I am changing

How I did it

How you can test it

Related Issues

@alukach
Copy link
Member Author

alukach commented Jul 26, 2024

@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)
Copy link
Member Author

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

@alukach
Copy link
Member Author

alukach commented Aug 19, 2024

@vincentsarago Hope I didn't steal your thunder, but I gave the breakout a try in aa30f7d. Feel free to suggest changes.

Copy link
Member

@vincentsarago vincentsarago left a 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,
Copy link
Member

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?

Copy link
Member Author

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

@alukach alukach merged commit 86545b0 into main Aug 22, 2024
1 check passed
@alukach alukach deleted the feature/add-auth branch August 22, 2024 23:07
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

Successfully merging this pull request may close these issues.

3 participants