Authentication

OIDC Response with Norwegian BankID

1661 views September 29, 2017 October 8, 2018 2

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

UserInfo request:

curl -XGET "https://preprod.signicat.com/oidc/userinfo" -H "Authorization: Bearer eyJraWQiOiJhbnkub2lkYy1zaWduYXR1cmUtcHJlcHJvZC50ZXN0Lmp3ay52LjEiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJsZkdkaTM5d2pSbjQ0WlFid3NQRnhGNVNMY0tzeXRKeSIsInNjcCI6WyJvcGVuaWQiLCJwcm9maWxlIl0sImlzcyI6Imh0dHBzOlwvXC9wcmVwcm9kLnNpZ25pY2F0LmNvbVwvb2lkYyIsImV4cCI6MTUwNjYwOTAzNiwiaWF0IjoxNTA2NjA3MjM2LCJqdGkiOiJRbFdwYXdCeFpCemZKTldIZUdOZTVTdTQzODNjVmNHTyIsImNpZCI6InN0ZWZmZW50ZXN0LnRlc3RzZXJ2aWNlLmN1cmwiLCJzaWQiOiIwMzEwMjAxNDEzcnZkbXN0bTFvMHlsc20wOXRwd2xueDZhMzd0anhqNTR4MmJ6ZjVvcGI1YWV5c2N6In0.jMC5SLFaHhkYH6OO3wcIzsit9wH_-Lb6vWWvKgUd3eBF9qTf7xA8Q_KjfywDlEiS7cvPyPVZwCE0bXI0EWLT9xlMLCykqCocCb_Vx15bY1L9vB7Uh5Yah_JKLIMlWdloJMO60zszTQgxStHHS_xDc-VZ_7opfiWsO6jlXaOi0jlMCkbAV6XZ44iP-pawp5bhpqZ_UIettGAMcTkjxEwngadOVebudw4hB83qPi3Mr2CRBS4pLt0qHZGjvpL_ZJMFoRPD-H9vRlzl7Xwn5AIMA0lKlNWiNyC2sNCyqlvCX7x-gVnbuxe7vLxWcay4AAMZ6B6kDmahGKQOUmDuiFvdpw"

UserInfo response:

{
"birthdate":"1990-10-10",
"given_name":"Ginny",
"name":"Weasley, Ginny",
"family_name":"Weasley",
"sub":"lfGdi39wjRn44ZQbwsPFxF5SLcKsytJy"
}

Was this helpful?