Skip to content
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

Revoke token via Java SDK #250

Open
GuiSim opened this issue Feb 19, 2019 · 2 comments
Open

Revoke token via Java SDK #250

GuiSim opened this issue Feb 19, 2019 · 2 comments
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@GuiSim
Copy link

GuiSim commented Feb 19, 2019

It is currently not possible to revoke a Google token using the Google Java SDK

See the documentation here:
https://developers.google.com/identity/protocols/OAuth2WebServer#tokenrevoke

There's no equivalent to the PHP $client->revokeToken(); in Java. As far as I can tell, the only workaround is to create your own client for this API call.

This custom client then calls

curl -H "Content-type:application/x-www-form-urlencoded" \
        https://accounts.google.com/o/oauth2/revoke?token={token}

As originally reported here:
#20

@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Feb 20, 2019
@sduskis sduskis added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. and removed 🚨 This issue needs some love. triage me I really want to be triaged. labels Mar 7, 2019
@Developer1970
Copy link

Is this planned at all? or when will it be planned eventually?

@TimurSadykov
Copy link
Member

TimurSadykov commented Oct 12, 2023

@Developer1970 Unfortunately, the library is in maintenance mode for some time which means only critical bug fixes and features gets implemented. One option to expedite this is to submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

5 participants