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

Improve authentication documentation #1086

Merged
merged 2 commits into from
Feb 7, 2023
Merged

Conversation

Mr0grog
Copy link
Member

@Mr0grog Mr0grog commented Feb 7, 2023

Now that we have public view permission, this updates the documentation to reflect it by describing how and when to authenticate.

It also duplicates the two main authentication routes under the API namespace at /api/v0/users/sign_in and /api/v0/users/session — the fact that they were at the root has always been confusing and this also allows the interactive features in the docs page to work.

This also updates the documentation to reflect the new public access approach, where not all requests need authentication.
This is mainly a convenience -- it's always been a minor pain point, and duplicating the authentication routes here lets the documentation page be interactive and allows users to try them out.
@Mr0grog Mr0grog merged commit 963b431 into main Feb 7, 2023
@Mr0grog Mr0grog deleted the public-access-needs-docs branch February 7, 2023 19:59
Mr0grog added a commit that referenced this pull request Feb 7, 2023
Mr0grog added a commit to edgi-govdata-archiving/web-monitoring-ops that referenced this pull request Feb 7, 2023
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.

1 participant