2019-03-01 10:18:57 +01:00
|
|
|
use lib 'inc';
|
|
|
|
use Test::More;
|
|
|
|
use strict;
|
|
|
|
use IO::String;
|
|
|
|
use LWP::UserAgent;
|
|
|
|
use LWP::Protocol::PSGI;
|
|
|
|
use MIME::Base64;
|
|
|
|
|
|
|
|
BEGIN {
|
|
|
|
require 't/test-lib.pm';
|
2020-02-05 22:44:14 +01:00
|
|
|
require 't/oidc-lib.pm';
|
2019-03-01 10:18:57 +01:00
|
|
|
require 't/saml-lib.pm';
|
|
|
|
}
|
|
|
|
|
2020-02-05 17:12:07 +01:00
|
|
|
my $maintests = 17;
|
2019-03-01 10:18:57 +01:00
|
|
|
my $debug = 'error';
|
|
|
|
my ( $idp, $sp, $rp, $res );
|
|
|
|
|
|
|
|
LWP::Protocol::PSGI->register(
|
|
|
|
sub {
|
|
|
|
my $req = Plack::Request->new(@_);
|
|
|
|
ok( $req->uri =~ m#http://auth.(rp|sp).com(.*)#, ' REST request' );
|
|
|
|
my $host = $1;
|
|
|
|
my $url = $2;
|
|
|
|
my ( $res, $client );
|
|
|
|
count(1);
|
|
|
|
if ( $host eq 'sp' ) {
|
|
|
|
pass(" Request from RP to OP(sp), endpoint $url");
|
|
|
|
$client = $sp;
|
|
|
|
}
|
|
|
|
elsif ( $host eq 'rp' ) {
|
|
|
|
pass(' Request from OP to RP(proxy)');
|
|
|
|
$client = $rp;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
fail(' Aborting REST request (external)');
|
|
|
|
return HTTP::Response->new(500);
|
|
|
|
}
|
|
|
|
if ( $req->method =~ /^post$/i ) {
|
|
|
|
my $s = $req->content;
|
|
|
|
ok(
|
|
|
|
$res = $client->_post(
|
|
|
|
$url, IO::String->new($s),
|
|
|
|
length => length($s),
|
|
|
|
type => $req->header('Content-Type'),
|
|
|
|
),
|
|
|
|
' Execute request'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
ok(
|
|
|
|
$res = $client->_get(
|
|
|
|
$url,
|
|
|
|
custom => {
|
|
|
|
HTTP_AUTHORIZATION => $req->header('Authorization'),
|
|
|
|
}
|
|
|
|
),
|
|
|
|
' Execute request'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
ok( $res->[0] == 200, ' Response is 200' );
|
|
|
|
ok( getHeader( $res, 'Content-Type' ) =~ m#^application/json#,
|
|
|
|
' Content is JSON' )
|
|
|
|
or explain( $res->[1], 'Content-Type => application/json' );
|
|
|
|
count(4);
|
|
|
|
return $res;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
SKIP: {
|
|
|
|
eval "use Lasso";
|
|
|
|
if ($@) {
|
|
|
|
skip 'Lasso not found', $maintests;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Initialization
|
2020-02-05 17:12:07 +01:00
|
|
|
$idp = register('idp', \&idp);
|
|
|
|
$sp = register('sp', \&sp);
|
2019-03-01 10:18:57 +01:00
|
|
|
|
|
|
|
ok(
|
|
|
|
$res = $sp->_get('/oauth2/jwks'),
|
|
|
|
'Get JWKS, endpoint /oauth2/jwks'
|
|
|
|
);
|
|
|
|
expectOK($res);
|
|
|
|
my $jwks = $res->[2]->[0];
|
|
|
|
|
|
|
|
ok(
|
|
|
|
$res = $sp->_get('/.well-known/openid-configuration'),
|
|
|
|
'Get metadata, endpoint /.well-known/openid-configuration'
|
|
|
|
);
|
|
|
|
expectOK($res);
|
|
|
|
my $metadata = $res->[2]->[0];
|
|
|
|
|
2020-02-05 17:12:07 +01:00
|
|
|
$rp = register('rp', sub { rp($jwks, $metadata) } );
|
2019-03-01 10:18:57 +01:00
|
|
|
|
|
|
|
# Query RP for auth
|
|
|
|
ok( $res = $rp->_get( '/', accept => 'text/html' ), 'Unauth SP request' );
|
|
|
|
my ( $url, $query ) =
|
|
|
|
expectRedirection( $res,
|
|
|
|
qr#http://auth.sp.com(/oauth2/authorize)\?(.*)$# );
|
|
|
|
|
|
|
|
# Push request to Proxy
|
|
|
|
switch ('sp');
|
|
|
|
ok(
|
|
|
|
$res = $sp->_get(
|
|
|
|
$url,
|
|
|
|
query => $query,
|
|
|
|
accept => 'text/html',
|
|
|
|
),
|
|
|
|
"Push request to OP, endpoint $url"
|
|
|
|
);
|
|
|
|
my $spPdata = 'lemonldappdata=' . expectCookie( $res, 'lemonldappdata' );
|
|
|
|
|
2019-04-11 11:58:21 +02:00
|
|
|
( $url, $query ) =
|
2019-03-01 10:18:57 +01:00
|
|
|
expectRedirection( $res, qr#^http://discovery.example.com/# );
|
|
|
|
|
|
|
|
# Return from WAYF
|
|
|
|
ok(
|
|
|
|
$res = $sp->_get(
|
|
|
|
"/",
|
2019-05-11 20:18:43 +02:00
|
|
|
query => "idp=" . uri_escape("http://auth.idp.com/saml/metadata"),
|
2019-03-01 10:18:57 +01:00
|
|
|
accept => 'text/html',
|
|
|
|
cookie => $spPdata,
|
|
|
|
),
|
|
|
|
"Return from WAYF"
|
|
|
|
);
|
|
|
|
|
|
|
|
$spPdata = 'lemonldappdata=' . expectCookie( $res, 'lemonldappdata' );
|
|
|
|
|
|
|
|
my ( $host, $tmp );
|
|
|
|
( $url, $query ) = expectRedirection( $res,
|
|
|
|
qr#^http://auth.idp.com(/saml/singleSignOn)\?(SAMLRequest=.+)# );
|
|
|
|
|
|
|
|
# Push SAML request to IdP
|
|
|
|
switch ('idp');
|
|
|
|
ok(
|
|
|
|
$res = $idp->_get(
|
|
|
|
$url,
|
|
|
|
query => $query,
|
|
|
|
accept => 'text/html',
|
|
|
|
),
|
|
|
|
'Launch SAML request to IdP'
|
|
|
|
);
|
|
|
|
my $idpPdata = 'lemonldappdata=' . expectCookie( $res, 'lemonldappdata' );
|
|
|
|
|
|
|
|
# Try to authenticate to IdP
|
|
|
|
my $body = $res->[2]->[0];
|
|
|
|
$body =~ s/^.*?<form.*?>//s;
|
|
|
|
$body =~ s#</form>.*$##s;
|
|
|
|
my %fields =
|
|
|
|
( $body =~ /<input type="hidden".+?name="(.+?)".+?value="(.*?)"/sg );
|
|
|
|
$fields{user} = $fields{password} = 'french';
|
|
|
|
use URI::Escape;
|
|
|
|
$query =
|
|
|
|
join( '&', map { "$_=" . uri_escape( $fields{$_} ) } keys %fields );
|
|
|
|
ok(
|
|
|
|
$res = $idp->_post(
|
|
|
|
$url,
|
|
|
|
IO::String->new($query),
|
|
|
|
accept => 'text/html',
|
|
|
|
length => length($query),
|
|
|
|
cookie => $idpPdata,
|
|
|
|
),
|
|
|
|
'Post authentication'
|
|
|
|
);
|
|
|
|
|
|
|
|
( $host, $url, $query ) = expectAutoPost( $res, 'auth.sp.com' );
|
|
|
|
$query =~ s/\+/%2B/g;
|
|
|
|
my $idpId = expectCookie($res);
|
|
|
|
|
|
|
|
# Post SAML response
|
|
|
|
switch ('sp');
|
|
|
|
ok(
|
|
|
|
$res = $sp->_post(
|
|
|
|
$url, IO::String->new($query),
|
|
|
|
length => length($query),
|
|
|
|
accept => 'text/html',
|
2019-10-01 11:18:20 +02:00
|
|
|
cookie => "$spPdata"
|
2019-03-01 10:18:57 +01:00
|
|
|
),
|
|
|
|
'POST SAML response'
|
|
|
|
);
|
|
|
|
my $spId = expectCookie($res);
|
|
|
|
( $url, $query ) = expectRedirection( $res,
|
|
|
|
qr#http://auth.sp.com/*(/oauth2[^\?]*)(?:\?(.*))?$# );
|
|
|
|
|
|
|
|
# Follow internal redirection
|
|
|
|
ok(
|
|
|
|
$res = $sp->_get(
|
|
|
|
$url,
|
|
|
|
query => $query,
|
|
|
|
accept => 'text/html',
|
2019-10-01 11:18:20 +02:00
|
|
|
cookie => "lemonldap=$spId;$spPdata"
|
2019-03-01 10:18:57 +01:00
|
|
|
),
|
|
|
|
'Follow internal redirection from SAML-SP to OIDC-OP'
|
|
|
|
);
|
|
|
|
( $host, $tmp, $query ) = expectForm( $res, '#', undef, 'confirm' );
|
|
|
|
ok(
|
|
|
|
$res = $sp->_get(
|
|
|
|
$url,
|
|
|
|
query => $query,
|
|
|
|
accept => 'text/html',
|
2019-10-01 11:18:20 +02:00
|
|
|
cookie => "lemonldap=$spId;$spPdata"
|
2019-03-01 10:18:57 +01:00
|
|
|
),
|
|
|
|
'Confirm OIDC sharing'
|
|
|
|
);
|
|
|
|
($query) = expectRedirection( $res, qr#http://auth.rp.com/*\?(.*)$# );
|
|
|
|
|
|
|
|
# Follow redirection to RP
|
|
|
|
switch ('rp');
|
|
|
|
ok( $res = $rp->_get( '/', query => $query, accept => 'text/html' ),
|
|
|
|
'Follow redirection to RP' );
|
|
|
|
my $rpId = expectCookie($res);
|
|
|
|
|
|
|
|
# Logout initiated by RP
|
|
|
|
ok(
|
|
|
|
$res = $rp->_get(
|
|
|
|
'/',
|
|
|
|
query => 'logout',
|
|
|
|
cookie => "lemonldap=$rpId",
|
|
|
|
accept => 'text/html'
|
|
|
|
),
|
|
|
|
'Query RP for logout'
|
|
|
|
);
|
|
|
|
( $url, $query ) = expectRedirection( $res,
|
|
|
|
qr#http://auth.sp.com(/oauth2/logout)\?(post_logout_redirect_uri=.+)$#
|
|
|
|
);
|
|
|
|
|
|
|
|
# Push logout request to proxy
|
|
|
|
switch ('sp');
|
|
|
|
ok(
|
|
|
|
$res = $sp->_get(
|
|
|
|
$url,
|
|
|
|
query => $query,
|
|
|
|
cookie => "lemonldap=$spId",
|
|
|
|
accept => 'text/html'
|
|
|
|
),
|
|
|
|
"Push logout request to OP/SP, endpoint $url"
|
|
|
|
);
|
|
|
|
( $host, $tmp, $query ) = expectForm( $res, '#', undef, 'confirm' );
|
|
|
|
ok(
|
|
|
|
$res = $sp->_post(
|
|
|
|
$url, IO::String->new($query),
|
|
|
|
length => length($query),
|
|
|
|
accept => 'text/html',
|
|
|
|
cookie => "lemonldap=$spId",
|
|
|
|
),
|
|
|
|
"Confirm logout, endpoint $url"
|
|
|
|
);
|
|
|
|
( $url, $query ) = expectRedirection( $res,
|
|
|
|
qr#http://auth.idp.com/*(/saml/singleLogout)\?(.*)# );
|
|
|
|
|
|
|
|
# Push logout to SAML IdP
|
|
|
|
switch ('idp');
|
|
|
|
ok(
|
|
|
|
$res = $idp->_get(
|
|
|
|
$url,
|
|
|
|
query => $query,
|
|
|
|
cookie => "lemonldap=$idpId",
|
|
|
|
accept => 'text/html',
|
|
|
|
),
|
|
|
|
'Push logout to SAML IdP'
|
|
|
|
);
|
|
|
|
( $url, $query ) = expectRedirection( $res,
|
|
|
|
qr#http://auth.sp.com/*(/saml/proxySingleLogoutReturn)\?(.*)$# );
|
|
|
|
|
2019-11-06 18:38:58 +01:00
|
|
|
my $removedCookie = expectCookie($res);
|
|
|
|
is($removedCookie, 0, "SSO cookie removed");
|
|
|
|
|
2019-03-01 10:18:57 +01:00
|
|
|
# Push logout to SAML SP
|
|
|
|
switch ('sp');
|
|
|
|
ok(
|
|
|
|
$res = $sp->_get(
|
|
|
|
$url,
|
|
|
|
query => $query,
|
|
|
|
cookie => "lemonldap=$spId",
|
|
|
|
accept => 'text/html',
|
|
|
|
),
|
|
|
|
'Push logout to SAML IdP'
|
|
|
|
);
|
|
|
|
|
|
|
|
#print STDERR Dumper($res);
|
|
|
|
}
|
|
|
|
|
|
|
|
count($maintests);
|
|
|
|
clean_sessions();
|
|
|
|
done_testing( count() );
|
|
|
|
|
|
|
|
sub idp {
|
|
|
|
return LLNG::Manager::Test->new( {
|
|
|
|
ini => {
|
|
|
|
logLevel => $debug,
|
|
|
|
domain => 'idp.com',
|
|
|
|
portal => 'http://auth.idp.com',
|
|
|
|
authentication => 'Demo',
|
|
|
|
userDB => 'Same',
|
|
|
|
issuerDBSAMLActivation => 1,
|
|
|
|
samlSPMetaDataOptions => {
|
|
|
|
'sp.com' => {
|
|
|
|
samlSPMetaDataOptionsEncryptionMode => 'none',
|
|
|
|
samlSPMetaDataOptionsSignSSOMessage => 1,
|
|
|
|
samlSPMetaDataOptionsSignSLOMessage => 1,
|
|
|
|
samlSPMetaDataOptionsCheckSSOMessageSignature => 1,
|
|
|
|
samlSPMetaDataOptionsCheckSLOMessageSignature => 1,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
samlSPMetaDataExportedAttributes => {
|
|
|
|
'sp.com' => {
|
|
|
|
cn =>
|
|
|
|
'1;cn;urn:oasis:names:tc:SAML:2.0:attrname-format:basic',
|
|
|
|
uid =>
|
|
|
|
'1;uid;urn:oasis:names:tc:SAML:2.0:attrname-format:basic',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
samlOrganizationDisplayName => "IDP",
|
|
|
|
samlOrganizationName => "IDP",
|
|
|
|
samlOrganizationURL => "http://www.idp.com/",
|
2020-02-05 20:05:20 +01:00
|
|
|
samlServicePrivateKeyEnc => saml_key_idp_private_enc,
|
|
|
|
samlServicePrivateKeySig => saml_key_idp_private_sig,
|
|
|
|
samlServicePublicKeyEnc => saml_key_idp_public_enc,
|
|
|
|
samlServicePublicKeySig => saml_key_idp_public_sig,
|
2019-03-01 10:18:57 +01:00
|
|
|
samlSPMetaDataXML => {
|
|
|
|
"sp.com" => {
|
|
|
|
samlSPMetaDataXML =>
|
|
|
|
samlSPMetaDataXML( 'sp', 'HTTP-Redirect' )
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
sub sp {
|
|
|
|
return LLNG::Manager::Test->new( {
|
|
|
|
ini => {
|
|
|
|
logLevel => $debug,
|
|
|
|
domain => 'sp.com',
|
|
|
|
portal => 'http://auth.sp.com',
|
|
|
|
authentication => 'SAML',
|
|
|
|
userDB => 'Same',
|
|
|
|
issuerDBSAMLActivation => 0,
|
|
|
|
issuerDBOpenIDConnectActivation => 1,
|
2019-05-11 20:18:43 +02:00
|
|
|
samlDiscoveryProtocolURL => 'http://discovery.example.com/',
|
2019-03-01 10:18:57 +01:00
|
|
|
samlDiscoveryProtocolActivation => 1,
|
|
|
|
|
2019-05-11 20:18:43 +02:00
|
|
|
oidcRPMetaDataExportedVars => {
|
2019-03-01 10:18:57 +01:00
|
|
|
rp => {
|
|
|
|
email => "mail",
|
|
|
|
family_name => "cn",
|
|
|
|
name => "cn"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
oidcRPMetaDataOptionsExtraClaims => {
|
|
|
|
rp => {
|
|
|
|
email => 'email',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
oidcServiceMetaDataCheckSessionURI => "checksession.html",
|
|
|
|
oidcServiceMetaDataJWKSURI => "jwks",
|
|
|
|
oidcServiceMetaDataEndSessionURI => "logout",
|
|
|
|
oidcServiceMetaDataRegistrationURI => "register",
|
|
|
|
oidcServiceMetaDataTokenURI => "token",
|
|
|
|
oidcServiceMetaDataUserInfoURI => "userinfo",
|
|
|
|
oidcServiceAllowHybridFlow => 1,
|
|
|
|
oidcServiceAllowImplicitFlow => 1,
|
|
|
|
oidcServiceAllowDynamicRegistration => 1,
|
|
|
|
oidcServiceAllowAuthorizationCodeFlow => 1,
|
|
|
|
oidcRPMetaDataOptions => {
|
|
|
|
rp => {
|
|
|
|
oidcRPMetaDataOptionsDisplayName => "RP",
|
|
|
|
oidcRPMetaDataOptionsIDTokenExpiration => 3600,
|
|
|
|
oidcRPMetaDataOptionsClientID => "rpid",
|
|
|
|
oidcRPMetaDataOptionsIDTokenSignAlg => "HS512",
|
|
|
|
oidcRPMetaDataOptionsBypassConsent => 0,
|
|
|
|
oidcRPMetaDataOptionsClientSecret => "rpsecret",
|
|
|
|
oidcRPMetaDataOptionsUserIDAttr => "",
|
|
|
|
oidcRPMetaDataOptionsAccessTokenExpiration => 3600
|
|
|
|
}
|
|
|
|
},
|
|
|
|
oidcOPMetaDataOptions => {},
|
|
|
|
oidcOPMetaDataJSON => {},
|
|
|
|
oidcOPMetaDataJWKS => {},
|
|
|
|
oidcServiceMetaDataAuthnContext => {
|
|
|
|
'loa-4' => 4,
|
|
|
|
'loa-1' => 1,
|
|
|
|
'loa-5' => 5,
|
|
|
|
'loa-2' => 2,
|
|
|
|
'loa-3' => 3
|
|
|
|
},
|
2020-02-05 22:44:14 +01:00
|
|
|
oidcServicePrivateKeySig => oidc_key_op_private_sig,
|
|
|
|
oidcServicePublicKeySig => oidc_key_op_public_sig,
|
2019-03-01 10:18:57 +01:00
|
|
|
samlIDPMetaDataExportedAttributes => {
|
|
|
|
idp => {
|
|
|
|
mail => "0;mail;;",
|
|
|
|
uid => "1;uid",
|
|
|
|
cn => "0;cn"
|
|
|
|
},
|
|
|
|
idp2 => {
|
|
|
|
mail => "0;mail;;",
|
|
|
|
uid => "1;uid",
|
|
|
|
cn => "0;cn"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
samlIDPMetaDataOptions => {
|
|
|
|
idp => {
|
|
|
|
samlIDPMetaDataOptionsEncryptionMode => 'none',
|
|
|
|
samlIDPMetaDataOptionsSSOBinding => 'redirect',
|
|
|
|
samlIDPMetaDataOptionsSLOBinding => 'redirect',
|
|
|
|
samlIDPMetaDataOptionsSignSSOMessage => 1,
|
|
|
|
samlIDPMetaDataOptionsSignSLOMessage => 1,
|
|
|
|
samlIDPMetaDataOptionsCheckSSOMessageSignature => 1,
|
|
|
|
samlIDPMetaDataOptionsCheckSLOMessageSignature => 1,
|
|
|
|
samlIDPMetaDataOptionsForceUTF8 => 1,
|
|
|
|
},
|
|
|
|
idp2 => {
|
|
|
|
samlIDPMetaDataOptionsEncryptionMode => 'none',
|
|
|
|
samlIDPMetaDataOptionsSSOBinding => 'redirect',
|
|
|
|
samlIDPMetaDataOptionsSLOBinding => 'redirect',
|
|
|
|
samlIDPMetaDataOptionsSignSSOMessage => 1,
|
|
|
|
samlIDPMetaDataOptionsSignSLOMessage => 1,
|
|
|
|
samlIDPMetaDataOptionsCheckSSOMessageSignature => 1,
|
|
|
|
samlIDPMetaDataOptionsCheckSLOMessageSignature => 1,
|
|
|
|
samlIDPMetaDataOptionsForceUTF8 => 1,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
samlIDPMetaDataExportedAttributes => {
|
|
|
|
idp => {
|
|
|
|
"uid" => "0;uid;;",
|
|
|
|
"cn" => "1;cn;;",
|
|
|
|
},
|
|
|
|
idp2 => {
|
|
|
|
"uid" => "0;uid;;",
|
|
|
|
"cn" => "1;cn;;",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
samlIDPMetaDataXML => {
|
|
|
|
idp => {
|
|
|
|
samlIDPMetaDataXML =>
|
|
|
|
samlIDPMetaDataXML( 'idp', 'HTTP-Redirect' )
|
|
|
|
},
|
|
|
|
idp2 => {
|
|
|
|
samlIDPMetaDataXML =>
|
|
|
|
samlIDPMetaDataXML( 'idp2', 'HTTP-Redirect' )
|
|
|
|
}
|
|
|
|
},
|
|
|
|
samlOrganizationDisplayName => "SP",
|
|
|
|
samlOrganizationName => "SP",
|
|
|
|
samlOrganizationURL => "http://www.sp.com",
|
2020-02-05 20:05:20 +01:00
|
|
|
samlServicePublicKeySig => saml_key_sp_public_sig,
|
|
|
|
samlServicePrivateKeyEnc => saml_key_sp_private_enc,
|
|
|
|
samlServicePrivateKeySig => saml_key_sp_private_sig,
|
|
|
|
samlServicePublicKeyEnc => saml_key_sp_public_enc,
|
2019-03-01 10:18:57 +01:00
|
|
|
samlSPSSODescriptorAuthnRequestsSigned => 1,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
sub rp {
|
|
|
|
my ( $jwks, $metadata ) = @_;
|
|
|
|
return LLNG::Manager::Test->new( {
|
|
|
|
ini => {
|
|
|
|
logLevel => $debug,
|
|
|
|
domain => 'rp.com',
|
|
|
|
portal => 'http://auth.rp.com',
|
|
|
|
authentication => 'OpenIDConnect',
|
|
|
|
userDB => 'Same',
|
|
|
|
oidcOPMetaDataExportedVars => {
|
|
|
|
sp => {
|
|
|
|
cn => "name",
|
|
|
|
uid => "sub",
|
|
|
|
sn => "family_name",
|
|
|
|
mail => "email"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
oidcOPMetaDataOptions => {
|
|
|
|
sp => {
|
|
|
|
oidcOPMetaDataOptionsJWKSTimeout => 0,
|
|
|
|
oidcOPMetaDataOptionsClientSecret => "rpsecret",
|
|
|
|
oidcOPMetaDataOptionsScope => "openid profile email",
|
|
|
|
oidcOPMetaDataOptionsStoreIDToken => 0,
|
|
|
|
oidcOPMetaDataOptionsDisplay => "",
|
|
|
|
oidcOPMetaDataOptionsClientID => "rpid",
|
|
|
|
oidcOPMetaDataOptionsConfigurationURI =>
|
|
|
|
"https://auth.sp.com/.well-known/openid-configuration"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
oidcOPMetaDataJWKS => {
|
|
|
|
sp => $jwks,
|
|
|
|
},
|
|
|
|
oidcOPMetaDataJSON => {
|
|
|
|
sp => $metadata,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|