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

Remove the /oauth/token endpoint from the OpenAPI scheme #376

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

zeerooth
Copy link
Collaborator

Right now our schema is still invalid because of that /oauth/token endpoint, as every endpoint in the OpenAPI spec needs to have at least one response defined, which we don't do right now. One way would would be to of course write all of these possible responses and their bodies etc. but there is actually no need to. OpenAPI docs state that including this endpoint is entirely optional so I propose just removing it from the schema. This endpoint is the same for every OAuth flow after all.

@zeerooth
Copy link
Collaborator Author

I don't understand why clippy failed here lol

@aumetra
Copy link
Member

aumetra commented Oct 16, 2023

You're still importing the module. Clippy runs on deny warnings

@zeerooth
Copy link
Collaborator Author

Silly me, I did remove it that but forgot to push the commit, thanks!

@aumetra aumetra added this pull request to the merge queue Oct 16, 2023
Merged via the queue into kitsune-soc:main with commit ef7f7fb Oct 16, 2023
5 checks passed
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.

2 participants