NAME

OIDC::Client::User

DESCRIPTION

Class representing a user.

METHODS

has_role( $role_to_check )

my $has_role = $user->has_role( $role );

Returns whether the user has a specified role in his roles attribute.

The role_prefix attribute is used to avoid repeating a prefix common to the roles to check.

The list parameters are:

role_to_check

Role to check