Draft
Conversation
Details: * Add the `RenkuSelfAuthenticator` class which authenticates internal tokens. (This is a new `authenticator`). * Add the `RenkuSelfTokenMint` class which can create internal tokens. Tokens are signed with the `HS512` algorithm. * Add the `POST /api/data/internal/authentication/token` endpoint to renew internal tokens. This endpoint has the same OpenAPI definition as `POST /api/data/oauth2/connections/:connection_id/token_endpoint`. OAuth 2.0 token endpoint to support applications running in sessions * Update the `pyjwt` dependency. Note: the next PRs will make use of the new internal tokens for `git-proxy`, `remote-session-controller` and `csi-rclone`.
Use self-minted tokens for sessions. Details: * git-proxy: use internal access and refresh tokens * remote-session-controller: use internal access and refresh tokens * csi-rclone: use internal refresh tokens with long expiry (24 hours) * the `POST /api/data/oauth2/connections/:connection_id/token_endpoint` API endpoint is updated to support only internal refresh tokens
Verify the scope claim when refreshing internal tokens: * Check that the corresponding session or deposit job is running
This reverts commit d89c87f.
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.
Build self-minted tokens + sandbox zenodo for testing.