ADFS OAuth SAML2 Bearer Authentication

Hello Tim.

Allow me to get back on this subject as the previous post was closed

So, our client configured Purecloud as a trusted relying party using this:

We configured the single sign-on on our organization as also described in the previous doc.

We have also configured a SAML2Bearer client on the oauth section of our organization.

I understand we now have to implement the authorization mechanism as described in:

https://developer.mypurecloud.com/api/rest/authorization/use-saml2-bearer.html

What I'm still missing is how to get the saml2 assertion.
The following articles try to explain it and I've red them carefully but I don't understand "who" to call first to get a SAML assertion. Which address should I use?



https://developer.mypurecloud.com/api/rest/authorization/use-saml2-bearer.html

Thank u very much.

Regards,
Daniel Grosso

1 Like

The SAML OAuth flow begins when your app redirects the user to the 3rd party auth provider. In the case of the example app, this is done here.

Next, the 3rd party auth provider will perform any necessary steps to authenticate the user. Once the user has been authenticated, the auth provider will make a POST request to the URL you've configured with the auth provider to send the SAML assertion. In the case of the example app, this is recieved here. When you receive the assertion, you can then use it to request an auth token from PureCloud.

Thank u Tim.

Just to clarify. In the example, the url https://inin.oktapreview.com/home/inindev351417_purecloud_2/0oa82726leSLOxkmG0h7/aln827p64sJb24Utt0h7, is what we set as the "Relying Party Identifier"?

the URL you've configured with the auth provider to send the SAML assertion

Where do I configure this?

Best regards,
Daniel Grosso

That's a URL for my Okta instance, so it isn't going to do you any good anywhere. I don't have any experience configuring ADFS, so I can't advise you how to set up your instance except to follow the documentation.

Hello Tim.

I understood the example is for another identity provider. I was just trying to do the "mapping" to ADFS. On the ADFS side the only url that was configured is the one on the documentation: https://login.mypurecloud.ie/saml

Are u aware of some colleague of urs, that might have been somehow involved in a ADFS integration and that could help us? We are kind of stuck here :stuck_out_tongue:

Thank u for all ur attention.

Best regards,
Daniel

I've asked around, but we don't have any in-house ADFS experts. Microsoft does have documentation on configuring the ADFS server though. This article may be relevant to you: https://technet.microsoft.com/en-us/library/gg188595.aspx

Hello Tim.

How are u?

Allow me to get back on this subject. We manage to perform authentication trough ADFS using PureCloud's front end. This means that both ADFS and PureCloud Organization are correctly configured. We now want to replicate this mechanism in our custom front-end using the REST API. We were wondering if our front-end application also needs to be a Relying Party in ADFS, does it?

Regards,
Daniel

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.