Authentication

OIDC response with itsme

262 views April 16, 2019 1

 

An example of how to use the access token to return a JSON containing the end-user’s information:

UserInfo request:

curl -XGET "https://preprod.signicat.com/oidc/userinfo" -H "Authorization: Bearer eyJraWQiOiJhbnkub2lkYy1zaWduYXR1cmUtZXUwMS1wcmVwcm9kLnRlc3QuandrLnYuMSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJUWHVFbmEzWExDUVhSamNMamFaMWFVcHRxaXR3NTBOeSIsInNjcCI6WyJhZGRyZXNzIiwicHJvZmlsZSIsImVtYWlsIiwib3BlbmlkIl0sInNubSI6ImRlbW8iLCJpc3MiOiJodHRwczpcL1wvZXUwMS5wcmVwcm9kLnNpZ25pY2F0LmNvbVwvb2lkYyIsImV4cCI6MTU1NTQwNjM0NSwiaWF0IjoxNTU1NDA0NTQ1LCJqdGkiOiJ1dUY2N3NkRW5ERHloeXQ4eGlhazBBdXlTSldNMWdmNSIsImNpZCI6ImRlbW8tcHJlcHJvZC1iYXNpYyJ9.Ee_-HtDpMuBcOPw3ckk5mgA3EK1sk4Tgpz5sI5rpLXbcsSnX0EQqF0rAQ4oftS_y6EJJ3Fkmq7t9b85dCXPMcDVNJnoqFkTwXJIbS3U7mzX10i_qhBjG9y2uCyY8PGNxOndIongzEcXHzKkHbEWQnUe1TWAzNG021Eg5bATUyORwQXfJG8EhWAbrhRFjYTySgijmtUMLz_ZhJia8dn9Sy98beOFSIBwS5b8PZFOMr83UHMqmBqOuQQ3xVuPckSZedvA6fx-ViFkV7bo7fsNxYpxvPfl48bOfzt6HeK7KEyu3hhWwWqB6_JVMbmammkspidG5nLeCvMP-0jAkEMJxkA"

UserInfo response:

{
    "sub": "TXuEna3XLCQXRjcLjaZ1aUptqitw50Ny",
    "birthdate": "1974-04-12",
    "email_verified": "false",
    "address": "place Sainte Gudule",
    "gender": "male",
    "name": "Debora Test",
    "given_name": "Debora",
    "family_name": "Test",
    "email": "test@signicat.be"
}

Was this helpful?