Skip to content

Test Gluu Server with TestShib2#

TestShib2 is a testing service intended for new installations of Shibboleth. In this documentation we will show how to test the Gluu Server with TestShib2. Please note that, during installation of the Gluu Server you will need to have installed the Shibboleth IDP in while running the script.

TestShib2 configuration: part 1#

  • Go to
  • Click on Register. Here we need to register our Gluu Server
  • Grab the SAML metadata of Gluu Server with: https://[hostname_of_gluu_server]/idp/shibboleth
  • Upload that XML file here in page
  • After successful registration, you will get something like this:


  • Now let's move forward to Gluu Server configuration

Gluu Server configuration#

  • Download TestShib2 metadata from
  • Log into Gluu Server oxTrust
  • Create Trust Relationship with TestShib-provider metadata:
  • We need to create a Federation trust relationship with this metadata
  • SAML -> Add Trust Relationship
    • DisplayName: TestShib federation
    • Description: TestShib federation
    • Entity type: Single SP
    • Metadata Location: File
    • SP metadata file: upload testshib-providers.xml metadata
    • Add
    • Wait for validation success for this trust relationship.


  • Create Trust Relationship with TestShib SP:
  • Now we need to create a Federated trust relationship
    • DisplayName: TestShib SP trust
    • Description: TestShib federated SP
    • Entity Type: Single SP
    • Metadata Location: Select Federation from drop down menu
    • Federation Name: TestShib Federation
    • Entity ID: click on this link, select
    • Configure Relying Party: not required
    • Released: Username
    • Add


TestShib2 configuration: part 2#

  • Hit in browser
  • Put the entityID of your Gluu Server here.
  • Hit Go.
  • If everything goes well, you will something like this:



  • Error code: 'Web Login Service - Unsupported Request The application you have accessed is not registered for use with this service.' from Gluu Server

    • Reason: Metadata is not loading properly.
    • Resolution: Need to fix metadata-provider velocity template
    • HowTo:

      • Backup existing 'metadata-providers.xml.vm' from /opt/gluu/jetty/identity/conf/shibboleth3/idp location
      • Modify 'metadata-providers.xml.vm' code like below
      • Exit Gluu-Server container
      • Stop/Start Gluu-server container by:

      $service gluu-server-3.x.x stop $service gluu-server-3.x.x start

    • Wait for 10 mins.

    • metadata-provider.xml.vml file:
<?xml version="1.0" encoding="UTF-8"?>
<MetadataProvider id="ShibbolethMetadata" xsi:type="ChainingMetadataProvider"

    <!-- ========================================================================================== -->
    <!--                             Metadata Configuration                                         -->
    <!--                                                                                            -->
    <!--  Below you place the mechanisms which define how to load the metadata for the SP you will  -->
    <!--  provide a service to.                                                                     -->
    <!--                                                                                            -->
    <!--  The Shibboleth Documentation at                                                           -->
    <!--                -->
    <!--  provides more details.                                                                    -->
    <!--                                                                                            -->
    <!--  NOTE.  This file SHOULD NOT contain the metadata for this IdP.                            -->
    <!--                                                                                            -->
    <!-- ========================================================================================== -->

#foreach( $trustRelationship in $trustParams.trusts )

#if($trustRelationship.spMetaDataSourceType.value == 'file')
        <MetadataProvider id="SiteSP$trustParams.trustIds.get($trustRelationship.inum)" xsi:type="FilesystemMetadataProvider"
            metadataFile="$medataFolder$trustRelationship.spMetaDataFN" >
#if($trustRelationship.spMetaDataSourceType.value == 'uri')
        <MetadataProvider id="SiteSP$trustParams.trustIds.get($trustRelationship.inum)" xsi:type="FileBackedHTTPMetadataProvider"

        maxRefreshDelay="$trustRelationship.maxRefreshDelay" >

#if( $trustRelationship.gluuSAMLMetaDataFilter and $trustRelationship.getGluuSAMLMetaDataFilter().size() > 0 )
            <MetadataFilter xsi:type="ChainingFilter" xmlns="urn:mace:shibboleth:2.0:metadata">
#foreach( $filter in $trustRelationship.getGluuSAMLMetaDataFilter() )
#if($trustRelationship.spMetaDataSourceType.value == 'file' || $trustRelationship.spMetaDataSourceType.value == 'uri')