REST API - Login Customer Center user

lock
push_pin
done
Answered
3

(NOTE: I moved this thread to the correct category)

Hello, 

We have a customer that wants to use the Customer Center username/password from an external application. 
I was wondering if it's possible to use the standard REST API for this, and pass in the username&password to get a sessionKey back? 
I see it's possible to CreateSession, but i would guess that is only for actuall users of SuperOffice: 
POST Agents/CustomerService/CreateSession | SuperOffice Docs 
This doesnt actually validate any username/password either, just creates a session for a specific userId. 

I could create it with CRMScript/Custom REST-endpoint, but they are going to use a customApp to fetch/create data, so it would be better to use standard. 

//Eivind

27 Jun 2022 | 01:53 PM

All Replies (3)

Update: I've had no luck finding a way to handle this through the REST Api og REST Agents. Another thing i've noticed is that it does not look to be an option to set a new username/password for the Customer Center either. Am i correct i assuming functionality for handling CC users does not exist in the standard REST API? Is there any spesific reason and/or ETA for doing it? 

//Eivind


29 Jun 2022 | 07:54 AM

Hi Eivind,

You are correct that the whole customer center login functionality is not available in the REST API, since the whole customer center login logic is not part of NetServer (for now).

Only way do this currently is using the SOAP API (OnSite Only) or creating your own REST api endpoints using CRMScript like you mentioned yourself.

29 Jun 2022 | 09:36 AM

Hi David,

Thank you for confirming :)

I was expecting it to be available through the CustomerService REST Agent: 
CustomerService_Agent | SuperOffice Docs 

I'll just create CRMScripts for this and add some authentication for my REST endpoint instead. 

Thanks!

//Eivind

29 Jun 2022 | 10:02 AM

Add reply