feat: temporary authorization code for batch operations #355
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.
draft
Close
#354
Changes
New API
Behavior Changed API
New Table
temporary_access_token
Others
I am wondering how to implement the following
1. Scope
Is it better that request with given temporary token is restricted accessible resource.
2. Token Format
Variable name(including table name) is not yet determined. Token length/ format is same.
As for formatting, I'm going to follow the general method.
a random string plus a prefix like
GitHub
/Slack
/Shopify
token.ghp_xxxxx
/\b(?:xoxb|xoxp|xapp|xoxa|xoxo|xoxr)-(?:\d-)?(?:[a-zA-Z0-9]{1,40}-)+[a-zA-Z0-9]{1,40}\b/g
/(shppa|shpca|shpat|shpss)_[a-zA-Z0-9]{32,64}/g
https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/user/profile/personal_access_tokens.md
https://github.blog/2021-04-05-behind-githubs-new-authentication-token-formats/