dazimo

saml20-idp-hosted.php

Feb 22nd, 2023 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.56 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  * SAML 2.0 IdP configuration for SimpleSAMLphp.
  5.  *
  6.  * See: https://simplesamlphp.org/docs/stable/simplesamlphp-reference-idp-hosted
  7.  */
  8.  
  9. $metadata['__DYNAMIC:1__'] = [
  10.     /*
  11.      * The hostname of the server (VHOST) that will use this SAML entity.
  12.      *
  13.      * Can be '__DEFAULT__', to use this entry by default.
  14.      */
  15.     'host' => '__DEFAULT__',
  16.  
  17.     // X.509 key and certificate. Relative to the cert directory.
  18.     'privatekey' => 'auth.comprehensibleinputwiki.com.pem',
  19.     'certificate' => 'auth.comprehensibleinputwiki.com.crt',
  20.  
  21.     /*
  22.      * Authentication source to use. Must be one that is configured in
  23.      * 'config/authsources.php'.
  24.      */
  25.     'auth' => 'example-userpass',
  26.  
  27.     /* Uncomment the following to use the uri NameFormat on attributes. */
  28.  
  29.     'attributes.NameFormat' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:basic',
  30.     'authproc' => [
  31.         // Convert LDAP names to oids.
  32.         100 => ['class' => 'core:AttributeMap', 'name2oid'],
  33.     ],
  34.  
  35.  
  36.     /*
  37.      * Uncomment the following to specify the registration information in the
  38.      * exported metadata. Refer to:
  39.      * http://docs.oasis-open.org/security/saml/Post2.0/saml-metadata-rpi/v1.0/cs01/saml-metadata-rpi-v1.0-cs01.html
  40.      * for more information.
  41.      */
  42.     /*
  43.     'RegistrationInfo' => [
  44.         'authority' => 'urn:mace:example.org',
  45.         'instant' => '2008-01-17T11:28:03Z',
  46.         'policies' => [
  47.             'en' => 'http://example.org/policy',
  48.             'es' => 'http://example.org/politica',
  49.         ],
  50.     ],
  51.     */
  52. ];
  53.  
Advertisement
Add Comment
Please, Sign In to add comment