PHP Classes

File: web/SSO/metadata/saml20-sp-remote.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/metadata/saml20-sp-remote.php   Download  
File: web/SSO/metadata/saml20-sp-remote.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 1,560 bytes
 

Contents

Class file image Download
<?php
/**
 * SAML 2.0 remote SP metadata for simpleSAMLphp.
 *
 * See: https://simplesamlphp.org/docs/stable/simplesamlphp-reference-sp-remote
 */

/*
 * Example simpleSAMLphp SAML 2.0 SP
 */
$metadata['https://saml2sp.example.org'] = array(
   
'AssertionConsumerService' => 'https://saml2sp.example.org/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp',
   
'SingleLogoutService' => 'https://saml2sp.example.org/simplesaml/module.php/saml/sp/saml2-logout.php/default-sp',
);

$metadata[Raptor2\SyntarsusBundle\Saml\SAMLConfig::getBaseUrl().'/SSO/SAML/'] = array(
   
'AssertionConsumerService' => Raptor2\SyntarsusBundle\Saml\SAMLConfig::getBaseUrl().'/SSO/SAML/module.php/saml/sp/saml2-acs.php/default-sp',
   
'SingleLogoutService' => Raptor2\SyntarsusBundle\Saml\SAMLConfig::getBaseUrl().'/SSO/SAML/module.php/saml/sp/saml2-logout.php/default-sp',
);

/*
 * This example shows an example config that works with Google Apps for education.
 * What is important is that you have an attribute in your IdP that maps to the local part of the email address
 * at Google Apps. In example, if your google account is foo.com, and you have a user that has an email john@foo.com, then you
 * must set the simplesaml.nameidattribute to be the name of an attribute that for this user has the value of 'john'.
 */
$metadata['google.com'] = array(
   
'AssertionConsumerService' => 'https://www.google.com/a/g.feide.no/acs',
   
'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
   
'simplesaml.nameidattribute' => 'uid',
   
'simplesaml.attributes' => FALSE,
);