Create a file saml20-sp-remote.php that has URLs with respective metadata. Refer below example.
Note: The 'TAG' in the $metadata['TAG'] is the SAML Audience that we will be using in application. the URL is the Application URL that you want to configure in this IDP
<?php
/**
* SAML 2.0 remote SP metadata for SimpleSAMLphp.
*
* See: https://simplesamlphp.org/docs/stable/simplesamlphp-reference-sp-remote
*/
$metadata[getenv('SIMPLESAMLPHP_SP_ENTITY_ID')] = array(
'AssertionConsumerService' => getenv('SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE'),
'SingleLogoutService' => getenv('SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE'),
);
$metadata['fcubs'] = array(
'AssertionConsumerService' => 'https://whf00bds:5002/FCJNeoWeb/LoginServlet?entity=ENTITY_ID1',
);
$metadata['obpay'] = array(
'AssertionConsumerService' => 'https://whf00bds.in.oracle.com:5002/FCJNeoWeb/LoginServlet?entity=OBPAY',
);
$metadata['elcm'] = array(
'AssertionConsumerService' => 'https://whf00bds.in.oracle.com:5002/FCJNeoWeb/LoginServlet?entity=ELCM',
);
Create file authsources.php with user credentails... Refer below example
<?php
$config = array(
'admin' => array(
'core:AdminPassword',
),
'example-userpass' => array(
'exampleauth:UserPass',
'user1:user1pass' => array(
'uid' => array('1'),
'eduPersonAffiliation' => array('group1'),
'email' => 'user1@example.com',
),
'user2:user2pass' => array(
'uid' => array('2'),
'eduPersonAffiliation' => array('group1'),
'email' => 'user2@example.com',
),
'user3:user3pass' => array(
'uid' => array('3'),
'eduPersonAffiliation' => array('group1'),
'email' => 'user3@example.com',
),
),
);
Another example of authsources.php (for reference only)
Expand source
Run docker run command. Above 2 files can be mounted as volumes.
docker run -dit --name=simple-saml-php \
-p 8182:8080 \
-v /scratch/share/saml/php/saml20-sp-remote.php:/var/www/simplesamlphp/metadata/saml20-sp-remote.php \
-v /scratch/share/saml/php/authsources.php:/var/www/simplesamlphp/config/authsources.php \
fsgbu-mum-128.snbomprshared1.gbucdsint02bom.oraclevcn.com:5000/utils/simple-saml-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