02-21-2019 01:29 AM - last edited on 03-03-2022 08:48 AM by Adam Weeks, Webex Evangelism
Hi all,
I have written an XML API script (in Postman) that will update a users Webex PMR PIN number via the XML API and it works on the devnet test site (apidemoeu.Webex.c_m/WBXService/XMLService) but the customer has their site integrated with SSO (ADFS).
I have an account that I can login and host meetings with, but the XML command when pushed to the production site fails with an authentication fail.
Is there a problem with trying to use the XML API for a Webex site that has SSO configured?
Cheers
01-28-2021 11:59 AM
Looping back to this in case others come across this in their dev efforts...
We use OAuth and are able to connect without issue. You'll find that PostMan is your friend in this effort...
In a nutshell, we created our integration here https://developer.webex.com/ and obtained the various keys needed in your app.
You'll also need to define the redirect URI and we've learned they are case sensitive.
You can only have 2 redirect URI's so we have one for DEV and one for Prod.
Set what permissions you want your app to have using the integration...
Now you have to code the app to have a way to "login" to webex using the URL provided in your app created above.
You'll need to add in elements from your IDP, we use ADFS so that was pretty straight forward.
Once you have that working, the login will provide a "code" with that, you can obtain an access token and refresh token.
The access and refresh token is unique to the user that generated to code, so you cannot share it with other accounts.
Once you have an access token, you can obtain a session ticket.
Now you have enough to authenticate... pass your user name and session ticket in your security context along with your site name.
I know this doesn't get into how to actually do this, but in a nutshell this is how it all works.
01-29-2021 08:57 AM
This Python/VS Code repo includes some Webex meetings samples, including handling both Webex meetings and Webex messaging OAuth providers: https://github.com/CiscoDevNet/webex-meetings-python-samples
12-03-2019 11:03 AM
01-06-2021 08:04 AM
I too would be interested in knowing if this was resolved. We have a similar issue so would be helpful to know how they worked through this, if at all.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide