Each and every proccesses starts with requestId, it is an entry point to login or register. For getting the requestId, call getRequestId().
Optional
option: GetRequestIdRequest// To get requestId using default configured settings, run the function without parameter
cidaasPublicService.getRequestId().then(function (response) {
// the response will give you request id.
}).catch(function(ex) {
// your failure code here
});
// To get requestId using custom settings, run the function with custom setting(s) inside option parameter. Example below will only override client_id & redirect_uri
const option: GetRequestIdRequest = {
'client_id': 'your client id',
'redirect_uri': 'your redirect url',
}
cidaasPublicService.getRequestId(option).then(function (response) {
// the response will give you request id.
}).catch(function(ex) {
// your failure code here
});
To get the client basic information, call getClientInfo(). This will return the basic client details such as client name and its details. Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/dc8a6cfb28abb-public-page-information for more details.