cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
966
Views
0
Helpful
4
Replies

Could we login sso enabled agent to SSO enabled Finesse programmatically?

gauravmarch
Level 1
Level 1

Dear Experts,

Could someone tell me if/how I can make an agent (sso enabled) login to my finesse server (sso enabled) programmatically?

 

I have been following links:
https://developer.cisco.com/docs/finesse/#!single-sign-on/single-signon

https://developer.cisco.com/docs/contact-center-express/#cisco-identity-service-client-sdk-overview

 

and have also been using cisco-identity-service-client-sdk, but couldn't understand how to get the authcode programmatically to fetch access token. 

Or its not possible at all as user will have to login by a browser session only?

 

Between this is how I can make an agent login using finesse rest api without enabling sso,

https://developer.cisco.com/docs/finesse/#!usersign-in-to-finesse/usersign-in-to-finesse

 

I want to make sso enabled agent also login programmatically from server side, but couldn't understand how.

 

1 Accepted Solution

Accepted Solutions

dekwan
Cisco Employee
Cisco Employee

Hi,

 

After you get the token from the IDS, you will use the same REST APIs, but for the authorization, you will use Bearer + token instead of Basic.

 

Thanxm

Denise

View solution in original post

4 Replies 4

dekwan
Cisco Employee
Cisco Employee

Hi,

 

After you get the token from the IDS, you will use the same REST APIs, but for the authorization, you will use Bearer + token instead of Basic.

 

Thanxm

Denise

Dear Denise,

Thanks a lot for your attention and kind replies.

 

Indeed the further rest API apis works with Bearer toekn auth header once the user is logged-in.

But as I asked could you please get some help for me regarding case how could I make user programmatically login to finesse like the normal rest apis.

 

As of now, I have to get my user logged-in in browser first, then get his token and then the rest apis works.

 

 

 

Regards

Gaurav

CoolA
Level 1
Level 1

@gaurav Did you get an answer to your question about how to do this programatically ? I can do it if I login through the browser. But I need to call the api through code.

 

Let me know.

TIA

dekwan
Cisco Employee
Cisco Employee

Hi,

 

Are you trying to use the API without the user inputting their username password? That isn't possible since the APIs need authentication. There isn't a way to get their token without them typing in their username and password at one point.

 

Thanx,

Denise