BuildOIDCLogoutRequest

From Gvp-public
Jump to navigation Jump to search

Description

This method can be used to provide devices with the URL to perform the logout request.

UNIAPI also generates some additional parameters:

  • nonce: String value used to associate the logout process with a session identifier. Will be maintained during all the process.

This nonce has to be created by UNIAPI and will be stored in the state variable and returned to the end application. We will use this to represent the logout session during all the flow (and use it for logging and BI logs).

  • state: a json with some parameters is created and encoded as a base64 string, for later use:
{
  "instanceId": 29,  //taken from the token
  "deviceType": 401, //taken from the token,
  "deviceId": 323424234, //taken from the input. Be carefull, this is not the MIB ID, is the DEVICE_ID column
  "userId": 323424234, //taken from the token
  "payloadDevice": "2342dsf2329fjj92332fd",  //taken from the input
  "deviceCallbackUrl": "https://movistarplay.com.cl/sso" // taken from the input
  "nonce":"42231976-a86d-42e2-8fe6-98f7546bdf89" // nonce generated by UNIAPI for this logout session
}

Geo-Location

Geo-location is not involved in the logout phase.

BI

This method creates events in KAFKA with topic = gvp.authentication.external and the following event formats:

{
"ob":"25",
"operation":"OID/logout",
"step":"1 - BuildOIDCLogoutRequest",
"transaction_id":"727fe862-3b46-43ca-8306-14b5076622f6",
"timestamp":"2018-12-13T20:14:34.0875272Z",
"status": "OK",  // OK if the url has been build correctly. ERROR if there was an error in the method. Fill the error with the error code and error_desc with the StatusMessage
"device_type_id":"401",
"device_id":"3243242334",
"user_id":"",
"error": "",
"error_desc":""
}

Parameters

  • payloadDevice (String, optional)
random hash generated by the client and stored locally, to perform security validations.
  • deviceCallbackUrl (String, optional)
the callback url where the device wants to receive the final result of the authentication process.
  • deviceId (String, required)
the ID of the device from which the logout is being performed (DEVICE_ID column)
  • token (String, required)
the logged UNIAPI token from the device app.


Returns

Exceptions

None


Caching

This method is not cached.


Known issues

None


Version history

API Version Number Change description Changes author
7.1 Initial method documentation Rafael MorĂ³n


See also