Skip to content

Add convenience method for invalidating an OAuth2Token #1717

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jgrandja opened this issue Sep 12, 2024 · 0 comments
Closed

Add convenience method for invalidating an OAuth2Token #1717

jgrandja opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@jgrandja
Copy link
Collaborator

jgrandja commented Sep 12, 2024

We should add a convenience method that allows for invalidating an OAuth2Token.

For example, to invalidate an access token, one would do the following:

OAuth2Authorization existingAuthorization = ...

OAuth2Authorization updatedAuthorization =
		OAuth2Authorization.from(existingAuthorization)
				.invalidate(existingAuthorization.getAccessToken().getToken())
				.build();

this.authorizationService.save(updatedAuthorization);
@jgrandja jgrandja added the type: enhancement A general enhancement label Sep 12, 2024
@jgrandja jgrandja self-assigned this Sep 12, 2024
@jgrandja jgrandja added this to the 1.4.0-M2 milestone Sep 12, 2024
@jgrandja jgrandja moved this to In Progress in Spring Security Team Sep 12, 2024
@jgrandja jgrandja moved this from In Progress to Done in Spring Security Team Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
Status: Done
Development

No branches or pull requests

1 participant