AzureAuth (version 1.1.0)

decode_jwt: Decode info in a token (which is a JWT object)

Description

Decode info in a token (which is a JWT object)

Usage

decode_jwt(token)

Arguments

token

A string representing the encoded token.

Value

A list containing up to 3 components: header, payload and signature.

Details

An OAuth token is a JSON Web Token, which is a set of base64URL-encoded JSON objects containing the token credentials along with an optional (opaque) verification signature. decode_jwt decodes the credentials into an R object so they can be viewed.

Note that decode_jwt does not touch the token signature or attempt to verify the credentials. You should not rely on the decoded information without verifying it independently. Passing the token itself to Azure is safe, as Azure will carry out its own verification procedure.

See Also

jwt.io, the main JWT informational site

jwt.ms, Microsoft site to decode and explain JWTs

JWT Wikipedia entry