0
votes

I have configured WSO2 Identity Server (hereafter IS) as Key Manager for WSO2 API Manager (hereafter APIM) following this documentation. APIM and IS are installed on different servers. Thereafter, I restarted both of them. But when I go to the devportal of APIM to generate access token, the addresses of token endpoint and revoke endpoint remain unchanged as depicted below:

this pic..

The question I would like to ask is how I can change these endpoint addresses to :

Token Endpoint: https://iskm.dom.zu:9444/oauth2/token

Revoke Endpoint: https://iskm.dom.zu:9444/oauth2/revoke

respectively

2

2 Answers

2
votes

You can change it to the host name of the Gateway by updating the https_endpoint value under [[apim.gateway.environment]] in the deployment.toml. In this case the host name of the token url will be updated to the host name of the Gateway you define. You also need to define show_as_token_endpoint_url as true. For more info, check here.

Otherwise, if you have separate key-manager configurations, you can update the service_url value under [apim.key_manager] config in the deployment.toml. For more info, check here. In this case, the host name of the token url will be the host name of the key-manager service

1
votes

You need to register a key manager by providing the relevant configurations (like token endpoint, revoke endpoint, authorize endpoint and client registration endpoint etc) in Admin Portal. Then you can select the relevant key manager from Dev Portal when generating token

Refer this doc for the step by step guideline.