Skip to content

Revoke token via Java SDK #250

@GuiSim

Description

@GuiSim

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions