Skip to content

Revoke token via Java SDK #250

Open
Open

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

Activity

  1. added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    and removed
    🚨This issue needs some love.
    triage meI really want to be triaged.
    on Mar 7, 2019
  2. Developer1970 commented on Oct 10, 2023

    @Developer1970

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

  3. TimurSadykov commented on Oct 12, 2023

    @TimurSadykov

    @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

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