Authentication

OIDC response with the MobileID app

267 views October 8, 2018 1

An example of how to use the access token to return a JSON containing the end users information:

UserInfo request:

curl -X GET \
  https://dev01.signicat.com/oidc/userinfo \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer eyJraWQiOiJhbnkub2lkYy50ZXN0Lmp3ay52LjEiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJJbnRLd0ZjM1ZHeXh3UHF2QUY3QV9TOEpRWHJpODEyVyIsInNjcCI6WyJvcGVuaWQiLCJwcm9maWxlIiwibW9iaWxlaWQiXSwic25tIjoibmJpZG1vYmlsZSIsImlzcyI6Imh0dHBzOlwvXC9kZXYwMS5zaWduaWNhdC5jb21cL29pZGMiLCJleHAiOjE1Mzg3NDg0MjcsImlhdCI6MTUzODc0NjYyNywianRpIjoiUHdUb1F5QTBOMTVhZGtRM2c3WTByRFRQTG14a0lPdE4iLCJjaWQiOiJ0ZXN0Lm5iaWRtb2JpbGUuc2lnbmliYW5rLmFwcCJ9.UGRW2bu9vvW-bH5Cfk5r9pugESBbpog8V1ELFsQTw0nxaoei1cLtciJjmf7yq9llgK_vGP5oY55GrymvsEunOQh4D_scZpg3PF068JsM09fcBA3htoh8v5HxgE1-3oz5V23V4aYsSV7MrwunyNPqkHI_bb8o-foZw8EKMrZrfmfpAC__S84YvQ3T07ocbtYwK8__aVX09lm1DoQ9A7-4yjwAIDLOPrrwvEBL9gwUXrAXbi1NxLSmiQnFyChNNTuvkxE-FNbBQaxAHTyUKarmr6gL4mQdzHOs25w6UD5xVSfhRA1FCMM0jayBAWw7NNny_2M5z9GpICLG0QmnHDFt1Q' \
  -d 'code=4s3I1UsRaeJ4IvFiaVU4vIEP9jgMqOQy&grant_type=authorization_code&client_id=test.nbidmobile.signibank.app&redirect_uri=https%3A%2F%2Fexample.com%2Fredirect'

UserInfo response:

{
    "sub": "IntKwFc3VGyxwPqvAF7A_S8JQXri812W",
    "deviceId": "t5Vaz9uHuwZOzf8TuPJAk8Tz6qCbKuMK"
}

Was this helpful?