OpenID

From wikieduonline
Jump to navigation Jump to search

Older protocol, check new (2014) OpenID Connect (OIDC)


set token (curl -s -X POST http://localhost:8080/token \
 -d 'grant_type=client_credentials' \
 -d 'client_id=test-client' \
 -d 'scope=openid' | jq -r .access_token)

echo $token | cut -d. -f2 | base64 -d 2>/dev/null | jq
{
 "iss": "http://localhost:8080",
 "iat": 1779865427,
 "exp": 1779869027,
 "nbf": 1779865417,
 "scope": "openid"
}

See also[edit]

Advertising: