Authentication

OIDC Response with Swedish BankID

1619 views December 12, 2017 October 8, 2018 0

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 eyJraWQiOiJhbnkub2lkYy1zaWduYXR1cmUudGVzdC5qd2sudi4xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJLR015aDVGQkNNVGtFTjkzNHNPTHl5QlMwclBkNC11cCIsInNjcCI6WyJhZGRyZXNzIiwic2NvcCIsInBob25lIiwicHJvZmlsZSIsImVtYWlsIiwib3BlbmlkIl0sInNubSI6InNpZ25pY2F0IiwiaXNzIjoiaHR0cHM6XC9cL3FhLnNpZ25pY2F0LmNvbVwvb2lkYyIsImV4cCI6MTUxMzY4MzY4OCwiaWF0IjoxNTEzNjgzMzg4LCJqdGkiOiJVZWlSWC1vNW1LeW5HSlJlWGl4cmZsQWpEQlEya2VxVSIsImNpZCI6InRlc3Quc2lnbmljYXQub2lkY3Rlc3QifQ.Eyj4SBE0ttdKO8m3GwwGdjY0we0RSf48bOVhjaZKlRYE-UB3V6qfngPVPKqAYpMB1VVSb-kRFHOU0fvgYFNnKsAqR4tSMJatEbDJpXlCzIcDTMYS63RGAUKL_Mj2ZFESasyX3x-f2j11fi51wZM2YEBWiNigDeuqUrgRANjn174in3CElPZG1QOyR3yv-t01Avb95P5jIs31n1-aXUOo-ghAfmv7H4W19EpEao1G-SRnCBsYDaEpNoL1Gjta5ENl9JWOdEwJuuuKk-TjHovUO1OJQ38iEiI2XPwc1JY1RDn93dnTVYlK96LvcMyTPnnLzE0bspoWpKt0rTZOz8KH_A"

UserInfo response:

{ 
	"family_name": "Signicat", 
	"given_name": "John", 
	"locale": "SE", 
	"name": "John Signicat", 
	"signicat.national-id": "199010275312", 
	"sub": "KGMyh5FBCMTkEN934sOLyyBS0rPd4-up", 
	"subject.nameid.namequalifier": "BANKID-SE" 
}

 

Was this helpful?