- Notifications
You must be signed in to change notification settings - Fork947
feat: add OAuth2 client credentials grant type and user ownership#18841
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:thomask33/07-10-feat_add_cleanup_for_expired_oauth2_provider_app_codes_and_tokens
Are you sure you want to change the base?
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- Restore refresh_hash as NOT NULL (existing data should still be valid) | ||
ALTER TABLE oauth2_provider_app_tokens | ||
ALTER COLUMN refresh_hash SET NOT NULL; | ||
-- Remove user_id column from OAuth2 provider apps | ||
ALTER TABLE oauth2_provider_apps | ||
DROP COLUMN user_id; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- Add user ownership to OAuth2 provider apps for client credentials support | ||
ALTER TABLE oauth2_provider_apps | ||
ADD COLUMN user_id uuid REFERENCES users(id) ON DELETE CASCADE; | ||
-- Make refresh_hash nullable to support client credentials tokens | ||
-- RFC 6749 Section 4.4.3: "A refresh token SHOULD NOT be included" for client credentials | ||
ALTER TABLE oauth2_provider_app_tokens | ||
ALTER COLUMN refresh_hash DROP NOT NULL; |
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.