Passer au contenu

Get user

Exchanges the session id and key (returned after login) for a JWT containing the user's identity attributes.

Get a user JWT

Requête

Sécurité
ApiKeyAuth
Chemin
environment_namestringobligatoire

The environment path provided by Namirial during the assessment phase

Exemple:myintegration
Requête
sessionidstringobligatoire

The user identifier returned as a query parameter in the redirect to the final URL after login.

Exemple:sessionid=_ecf182c0024338b109397ea3d04ab141
sessionkeystringobligatoire

The session key returned as a query parameter in the redirect to the final URL after login.

Exemple:sessionkey=_029da15302d1f7bf8a4ff9826b4489c3
curl -i -X GET \
  'https://esp-saas.test.namirialtsp.com/api/secure/myintegration/getUser?sessionid=_ecf182c0024338b109397ea3d04ab141&sessionkey=_029da15302d1f7bf8a4ff9826b4489c3' \
  -H 'Esp-Api-Key: YOUR_API_KEY_HERE'

Réponses

JWT containing the user's SAML assertion attributes

Corpstext/plain
string(JWTBearerResponse)

A signed JWT containing the user's SAML assertion attributes. The claims vary by identity scheme (SPID vs CIE). See Get user token for decoded examples.

Réponse
string