Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add cleanup for expired OAuth2 provider app codes and tokens#18825

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

Open
ThomasK33 wants to merge1 commit intothomask33/07-08-feat_replace_callback_url_with_redirect_uris_for_oauth2_rfc_6749_compliance
base:thomask33/07-08-feat_replace_callback_url_with_redirect_uris_for_oauth2_rfc_6749_compliance
Choose a base branch
Loading
fromthomask33/07-10-feat_add_cleanup_for_expired_oauth2_provider_app_codes_and_tokens

Conversation

ThomasK33
Copy link
Member

Add OAuth2 Provider App Codes and Tokens Cleanup

This PR adds database cleanup functionality for expired OAuth2 provider app codes and tokens. The implementation:

  1. Adds two new database methods:

    • DeleteExpiredOAuth2ProviderAppCodes - Removes authorization codes that have expired
    • DeleteExpiredOAuth2ProviderAppTokens - Removes access tokens that have expired
  2. Integrates these methods into the database purge routine alongside the existing device code cleanup

  3. Adds authorization checks to ensure only system operations can perform these cleanup tasks

  4. Includes comprehensive tests to verify the cleanup functionality works correctly for both expired app codes and tokens

These changes ensure that expired OAuth2 provider data is properly cleaned up from the database, preventing unnecessary accumulation of stale records.

@ThomasK33Graphite App
Copy link
MemberAuthor

ThomasK33 commentedJul 10, 2025
edited
Loading

@ThomasK33ThomasK33 requested a review fromjohnstcnJuly 10, 2025 11:06
@ThomasK33ThomasK33 marked this pull request as ready for reviewJuly 10, 2025 11:06
@ThomasK33ThomasK33 requested a review frommafredriJuly 10, 2025 11:10
@ThomasK33ThomasK33force-pushed thethomask33/07-10-feat_add_cleanup_for_expired_oauth2_provider_app_codes_and_tokens branch fromdae9dfa to29ecd64CompareJuly 10, 2025 11:36
@ThomasK33ThomasK33force-pushed thethomask33/07-08-feat_replace_callback_url_with_redirect_uris_for_oauth2_rfc_6749_compliance branch frome24c4b5 to98e7f95CompareJuly 12, 2025 12:55
@ThomasK33ThomasK33force-pushed thethomask33/07-10-feat_add_cleanup_for_expired_oauth2_provider_app_codes_and_tokens branch from29ecd64 to50a22dbCompareJuly 12, 2025 12:55
@ThomasK33ThomasK33force-pushed thethomask33/07-10-feat_add_cleanup_for_expired_oauth2_provider_app_codes_and_tokens branch from50a22db to93a1a1dCompareJuly 14, 2025 12:43
@ThomasK33ThomasK33force-pushed thethomask33/07-08-feat_replace_callback_url_with_redirect_uris_for_oauth2_rfc_6749_compliance branch from98e7f95 to2792051CompareJuly 14, 2025 12:43
@ThomasK33ThomasK33force-pushed thethomask33/07-08-feat_replace_callback_url_with_redirect_uris_for_oauth2_rfc_6749_compliance branch from2792051 to3dd0c37CompareJuly 14, 2025 16:22
@ThomasK33ThomasK33force-pushed thethomask33/07-10-feat_add_cleanup_for_expired_oauth2_provider_app_codes_and_tokens branch from93a1a1d to5c7f06aCompareJuly 14, 2025 16:22
@ThomasK33ThomasK33force-pushed thethomask33/07-10-feat_add_cleanup_for_expired_oauth2_provider_app_codes_and_tokens branch from5c7f06a to8e8bb3cCompareJuly 14, 2025 17:10
@ThomasK33ThomasK33force-pushed thethomask33/07-08-feat_replace_callback_url_with_redirect_uris_for_oauth2_rfc_6749_compliance branch from3dd0c37 to962c22cCompareJuly 14, 2025 17:18
@ThomasK33ThomasK33force-pushed thethomask33/07-10-feat_add_cleanup_for_expired_oauth2_provider_app_codes_and_tokens branch from8e8bb3c to0393465CompareJuly 14, 2025 17:18
@ThomasK33ThomasK33 changed the base branch fromthomask33/07-08-feat_replace_callback_url_with_redirect_uris_for_oauth2_rfc_6749_compliance tographite-base/18825July 15, 2025 17:24
@ThomasK33ThomasK33force-pushed thethomask33/07-10-feat_add_cleanup_for_expired_oauth2_provider_app_codes_and_tokens branch from0393465 to643824aCompareJuly 15, 2025 17:27
@ThomasK33ThomasK33 changed the base branch fromgraphite-base/18825 tothomask33/07-08-feat_replace_callback_url_with_redirect_uris_for_oauth2_rfc_6749_complianceJuly 15, 2025 17:27
Change-Id: I07e7c229efa6e92282885464d2193dfc4c2e1c98Signed-off-by: Thomas Kosiewski <tk@coder.com>
@ThomasK33ThomasK33force-pushed thethomask33/07-10-feat_add_cleanup_for_expired_oauth2_provider_app_codes_and_tokens branch from643824a tof2c16b5CompareJuly 17, 2025 14:38
@ThomasK33ThomasK33force-pushed thethomask33/07-08-feat_replace_callback_url_with_redirect_uris_for_oauth2_rfc_6749_compliance branch frombed62ad to4fb1c39CompareJuly 17, 2025 14:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dannykoppingdannykoppingdannykopping approved these changes

@johnstcnjohnstcnAwaiting requested review from johnstcn

@mafredrimafredriAwaiting requested review from mafredri

Assignees

@ThomasK33ThomasK33

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ThomasK33@dannykopping

[8]ページ先頭

©2009-2025 Movatter.jp