PHP code example of helsingborg-stad / miniorange-saml-20-single-sign-on

1. Go to this page and download the library: Download helsingborg-stad/miniorange-saml-20-single-sign-on library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

helsingborg-stad / miniorange-saml-20-single-sign-on example snippets


add_action('mo_saml_user_attributes', function($attributes) {
    // Do something with the attributes
});

add_action('mo_saml_user_group_name', function($user_id, $group_name) {
    // Do something with the user ID and group name
});