Lemonldap::NG::Portal::_OpenIDConnect(3pm)

Lemonldap::NG::Portal::_OpenIDConnect3pm

Common openidconnect functions

Usage

use Lemonldap::NG::Portal::_OpenIDConnect;

Overview

This module contains common methods for OpenIDConnect authentication and user information loading

Methods

loadOPs

Load OpenID Connect Providers and JWKS data

loadRPs

Load OpenID Connect Relying Parties

refreshJWKSdata

Refresh JWKS data if needed

getRP

Get Relying Party corresponding to a Client ID

getCallbackUri

Compute callback URI

buildAuthorizationCodeAuthnRequest

Build Authentication Request URI for Authorization Code Flow

buildAuthorizationCodeAuthnResponse

Build Authentication Response URI for Authorization Code Flow

buildImplicitAuthnResponse

Build Authentication Response URI for Implicit Flow

buildHybridAuthnResponse

Build Authentication Response URI for Hybrid Flow

getAuthorizationCodeAccessToken

Get Token response with authorization code

checkTokenResponseValidity

Check validity of Token Response

getUserInfo

Get UserInfo response

decodeJSON

Convert JSON to HashRef

getOpenIDConnectSession

Try to recover the OpenID Connect session corresponding to id and return session

storeState

Store information in state database and return

extractState

Extract state information into $self

extractJWT

Extract parts of a JWT

verifyJWTSignature

Check signature of a JWT

verifyHash

Check value hash

createHash

Create Hash

returnRedirectError

Create error redirection

returnJSONStatus

Print JSON content

returnJSONError

Print JSON error

returnJSON

Print JSON content

returnBearerError

Return Bearer error

getEndPointAuthenticationCredentials

Get Client ID and Client Secret

getEndPointAccessToken

Get Access Token

getAttributesListFromClaim

Return list of attributes authorized for a claim

buildUserInfoResponse

Return Hash of UserInfo data

createJWT

Return JWT

createIDToken

Return ID Token

getFlowType

Return flow type

getIDTokenSub

Return sub field of an ID Token

getJWTJSONData

Return payload of a JWT as Hash ref

key2jwks

Return JWKS representation of a key

buildLogoutRequest

Build Logout Request URI

buildLogoutResponse

Build Logout Response URI

Bug report

Use OW2 system to report bug or ask for features: <http://jira.ow2.org>

Download

Lemonldap::NG is available at <http://forge.objectweb.org/project/showfiles.php?group_id=274>

Author

Clement Oudot, <[email protected]>

From liblemonldap-ng-portal-perl 1.9.7-3+deb9u2 in Debian 9 (Stretch). Parsed by carta from the page's man source.