IdToken getClaims · Issue #759 · openid/AppAuth-Android · GitHub
Skip to content

IdToken getClaims #759

Description

@dIeGoLi

Feature Request

The IdToken class is currently private. It would be nice to easily read claims from id token.

Motivation

Making it easy to read id token claims.

Description

IdToken class should be public. It already contains json parsing logic. The class should offer a method getClaims() which returns a List<Claim> where claim represents a string key and string value. Claim Value arrays could be "flattened" and be returned as multiple claims.

Alternatives or Workarounds

Do the json parsing yourself by copying code from IdToken class. :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions