feat: Update RFC8414 OAuth discovery endpoint for LOLA account portability Implementation #229
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.
This PR makes a complete overview and update of the RFC8414 OAuth Authorization Server Metadata endpoint with LOLA extensions for ActivityPub account portability discovery Implementation.
Closes #228
testbed/core/tests/test_lola_compliance.py) that handles the RFC8414 compliance teststestbed/core/tests/test_api.pyfor better separation of concernsoauth_authorization_server_metadataviewSECURE_PROXY_SSL_HEADERfor HTTPS detection in Production (Staging inherits from it)Features that were revised/updated
/.well-known/oauth-authorization-serveractivitypub_account_portabilityparameter for discoveryProduction Deployment Notes
Current behaviour: Returns
http://URLs (incorrect)curl -sS \ -H "Accept: application/json" \ https://ap-testbed.dtinit.org/.well-known/oauth-authorization-server{ "issuer":"http://ap-testbed.dtinit.org", "authorization_endpoint":"http://ap-testbed.dtinit.org/oauth/authorize/", "token_endpoint":"http://ap-testbed.dtinit.org/oauth/token/", "scopes_supported":[ "activitypub_account_portability" ], "response_types_supported":[ "code" ], "grant_types_supported":[ "authorization_code" ], "activitypub_account_portability":"http://ap-testbed.dtinit.org/oauth/authorize/" }"%"After deployment: All URLs should use
https://protocol. (correct)The
SECURE_PROXY_SSL_HEADERsetting enables proper HTTPS detection behind Google Cloud Run's load balancer.Standards Compliance
Testing