NAME

OIDC::Client::Identity - Identity class

DESCRIPTION

Class representing an identity

ATTRIBUTES

subject

The subject identifier coming from the ID token. Required

claims

Hashref of claims coming from the ID token. Required

token

The string of the ID token. Required

expires_at

The expiration time of the identity (number of seconds since 1970-01-01T00:00:00Z)

METHODS

has_expired( $leeway )

my $has_expired = $identity->has_expired();

Returns whether the identity has expired.

Returns undef if the expires_at attribute is not defined.

The list parameters are:

leeway

Number of seconds of leeway for the identity to be considered expired before it actually is.