1
votes

I have the following setup on the same machine:

  • WSO2-AM
  • WSO2-IM-KM (Identity manager as key manager)

The identity manager federates authentication to an external OpenID identity provider.

What I've done so far:

  • Share the databases between the two components
  • Make WSO2-AM delegate the authentication to WSO2-IM-KM
  • Configure the external provider to the generated service provider (generated in WSO2-IM-KM when creating an application in WSO2-AM store)

The current behavior:

My problems :

  • How am I supposed to automate the manual step I described before? Am I in charge of creating a dedicated endpoint to do it, in order to keep the authorization_code obfuscated from the client, or is there a built-in endpoint in WSO2? If appropriate, what is this endpoint?
  • Is there an endpoint that generates the oauth2/authorize URL?

After further research:

I have found the following document https://docs.wso2.com/display/IS540/Authorization+Code+Grant that seems to indicate that I need a "client", but I don't have one, I just need my API to be authenticated with the external identity provider.

1
do u have any error logs in the API manager server during this error? I think there should some error on the logs (say authorization related error, etc)Chamila Adhikarinayake
are you saying that jaggery_oidc_acs.jag should work?Guerric P
yes. see docs.wso2.com/display/AM260/… which uses jaggery_oidc_acs.jagChamila Adhikarinayake

1 Answers

0
votes

Answering to problem 01

If you want to use authorization code grant type to get access token definitely there should be a callback URL to get authorization code. If your callback URL is real no need to do any manual step, simply just retrieve authorization code from request query parameters sent to callback URL. You can check this behavior from playground2 sample application [1] where callback URL is http://localhost:8080/playground2/oauth2client.

Answering to problem 02

Please check OAuth2AuthzEPUrl tag in identity.xml

[1] https://docs.wso2.com/display/IS570/Setting+Up+the+Sample+Webapp