feat: add VERSIONS_REQUIRE_AUTH to make versions/details auth optional#13
Closed
alfonsosastre wants to merge 5 commits intomainfrom
Closed
feat: add VERSIONS_REQUIRE_AUTH to make versions/details auth optional#13alfonsosastre wants to merge 5 commits intomainfrom
alfonsosastre wants to merge 5 commits intomainfrom
Conversation
- Add VERSIONS_REQUIRE_AUTH config (default True) to allow unauthenticated
access to /versions and /{version}/details for discovery (e.g. Payter)
- VersionsAuthorizationVerifier uses optional Authorization header when
VERSIONS_REQUIRE_AUTH=false
- Add tests for 2.2.1 and 2.3.0 when auth is optional
- Set via VERSIONS_REQUIRE_AUTH env var
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…guidance" This reverts commit 2b3d91b.
Contributor
Author
|
Closing — this was already merged as #12. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VERSIONS_REQUIRE_AUTHconfig setting (defaultTrue) to control whether the/versionsand/{version}/detailsendpoints require authenticationFalse, these endpoints are publicly accessible for OCPI discovery without a tokenTest plan
VERSIONS_REQUIRE_AUTH=False(v2.2.1 and v2.3.0)VERSIONS_REQUIRE_AUTH=False🤖 Generated with Claude Code