wso2 api manager refresh and access token revocation
NickName:user1563721 Ask DateTime:2018-02-25T05:16:37

wso2 api manager refresh and access token revocation

I have the setup where clients are accessing APIs defined through WSO2 API Manager secured by OAuth2 refresh and access tokens. The client gets the tokens using authorization code flow and authentication and authorization is done by 3rd party software.

Access tokens has default expiration time of 3600 seconds (60 minutes) and refresh tokens are without expiration (lasts forever).

Now I have to manage the refresh token revocation by user or admin from 3rd party application. The use case is that user or application admin will remove the authorized access for client which should revoke refresh token in WSO2 API Manager. (not the client logout function only, as the client application can be lost or compromised)

Like if you have a Google account you can remove access to applications using management of your account. (Apps with access to your account)

WSO2 API Manager has revoke API in order to do so where you should send refresh token to revoke. (Token API)

This means that the 3rd party application should also have refresh token in order to revoke it through that API but I understand this as a security flow because only client show have received the refresh token and be able to use it on order to renew access token.

How should be such use case implemented in WSO2 API Manager? How can 3rd party application call API for token revocation without knowing it? What is the correct implementation?

Copyright Notice:Content Author:「user1563721」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/48967697/wso2-api-manager-refresh-and-access-token-revocation

More about “wso2 api manager refresh and access token revocation” related questions

wso2 api manager refresh and access token revocation

I have the setup where clients are accessing APIs defined through WSO2 API Manager secured by OAuth2 refresh and access tokens. The client gets the tokens using authorization code flow and authenti...

Show Detail

Access Token Revocation not working in wso2 Api manager

Description: I'm generating a OAUTH2 password grant access token using the client ID and Client secret of my Service provider in wso2 API manager. The service provider is auto generated for the

Show Detail

WSO2 api manager - refresh token request format

After retrieving an access token from an WSO2 api manager, what request needs to be made using the refresh token to obtain a new access token? Is this documented anywhere? I have had a hunt around...

Show Detail

How to refresh the access token of an Application with the WSO2 API Manager 1.10.0?

I've (finally) managed to get a valid access token for an application using the API with the WSO2 API Manager 1.10.0. However, it is unclear to me how to refresh this token. I got the working access

Show Detail

WSO2 API Manager 1.9.1 Key Manager access token translation

I have an OpenIdConnect Identity Provider hooked up to the API Manager. I am able to authenticate and retrieve an access token using authorization_code and implicit grant types. The access token cr...

Show Detail

how can I Separate Refresh token with Get access token?

I created "test-App" application in API Manager WSO2 with the grant types of "refresh-token" "SAML2", "PASSWORD" "Client Credentials" and "JWT...

Show Detail

WSO2 API Manager - java code sample to connect WSO2 API manager to do TOKEN API operations like generate production keys, tokens, refresh tokens etc

Currently I am doing POC on WSO2 API Manager. Is there any java client code sample to connect WSO2 API manager to do TOKEN API operations like generate production keys, tokens, refresh tokens etc.

Show Detail

Requesting Access Token from WSO2 API Manager via Token API

I am trying to understand on how to implement access token request from WSO2 API Manager. Given I have a login page with username and password input, how do I request the access token by using only...

Show Detail

How to auto refresh a token when user is active - Wso2 IS, API Manager

I am using Wso2 API Manager 1.9 and Wso2 IS 5. I am generating token by curl -k -d "grant_type=password&[email protected]&password=password" -H "Authorization: Basic

Show Detail

WSO2 API Manager- Can we access API without access token / subscription?

Is this possible to access API without subscription / without access token in WSO2 API Manager?

Show Detail