18 Apr 2021 23:37:18 UTC
- Distribution: Authen-NZRealMe
- Module version: 1.23
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (0)
- Testers (16 / 0 / 0)
- KwaliteeBus factor: 2
- % Coverage
- License: perl_5
- Perl: v5.14.0
- Activity24 month
- Download (165.52KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionAJM Andrew Maguireand 1 contributors
- Andrew Maguire
- SEE ALSO
- LICENSE AND COPYRIGHT
Authen::NZRealMe::LogonStrength - Manipulate NZ RealMe Login service AuthnContextClassRef values
The NZ RealMe Login service supports the notion of logon strength. For example a user session authenticated with a username and password is a 'low strength' logon. Whereas authenticating with a user, password and SecurID token will result in a moderate strength logon. The different logon strengths are represented by URNs which will be present in the initial SAML AuthnRequest message as well as the assertion in the resulting ArtifactResponse.
This class is used to encapsulate the URNs and to provide methods for comparing the strength of one URN to another.
The following constants are defined for referring to URNs:
Creates an object from the named strength identifier which might be a word (e.g.: 'low'), a URN (see the RealMe Login service SAML v2.0 Messaging Specification), or a URN fragment matching the last portion of a URN (e.g.: 'OTP:Token:SID').
Returns the URN for the selected logon strength.
Returns the strength score (currently either 10 or 20) which is used when comparing strengths using the 'minimum' match type.
This method returns if the provided logon strength matches the required strength, or dies if the strength does not meet the specified requirement.
required_strengthwill default to 'low' if not provided.
strength_matchparameter must be 'exact' or 'minimum' (default 'minimum'). When comparing different logon strengths, the rules outlined in the RealMe Login service SAML v2.0 Messaging Specification are used.
See Authen::NZRealMe for documentation index.
Copyright (c) 2010-2022 Enrolment Services, New Zealand Electoral Commission
Written by Grant McLean <firstname.lastname@example.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Authen::NZRealMe, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Authen::NZRealMe
For more information on module installation, please visit the detailed CPAN module installation guide.