---
sourceDocument: Yokohama Platform security
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/platform-security

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# (Workaround) Enable service provider-initiated authentication

# (Workaround) Enable service provider-initiated authentication {#ariaid-title1}

Release version: Yokohama  
Updated January 30, 2025  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Use this workaround if authentication fails because you do not have SAML 2.0 Update 1. This issue can happen if users attempt to skip IdP authentication and navigate directly to the instance.

## Before you begin

Role required: admin

## About this task

This error occurs when the instance doesn't provide ADFS with the needed definition and semantics for the SPNameQualifier attribute in the SAMLResponse.

Enable service provider-initiated authentication by doing one of the following actions:

## Procedure

* Upgrade to SAML 2.0 Update 1 and clear the option to create an AuthnContextClass request.
* Modify the SAML2 script include to comment out the definitions of the `SPNameQualifier` attribute when you have SAML 2.0 active (not SAML 2.0 Update 1).  
  Comment out these lines in the createNameID and createNameIDPolicy functions:

      //nid.setSPNameQualifier (serviceURL ) ;

       //nameIdPolicy. setSPNameQualifier (serviceURLStr ) ;

{#t_EnableSvcProviderInitiatedAuth__steps-unordered_xlr_cyg_cs}

## What to do next

If you do not want the login prompt from your ADFS server to appear when you access the instance, set the following SAML 2.0 Update 1 property to false: Create an AuthnContextClass request in the AuthnRequest statement (glide.authenticate.sso.saml2.createrequestedauthncontext).

