ForgeRock Identity Platform
ForgeRock Identity Cloud

SP initiated login fails in Identity Cloud or AM (All versions) with Service Provider ID is null error

Last updated Mar 3, 2022

The purpose of this article is to provide assistance if a SP initiated login fails in ForgeRock Identity Cloud or AM with an error, "Service Provider ID is null". The request sent by the client was syntactically incorrect. For example, your login URL is similar to:


An error similar to the following is shown in the browser when the login URL is called:

HTTP Status 400 - Service Provider ID is null. type Status report  message Service Provider ID is null.  description The request sent by the client was syntactically incorrect.

Recent Changes

Configured SAML 2.0 Federation to initiate SSO from the service provider side.


The identity provider cannot be identified due to incorrect or missing metaAlias.


This issue can be resolved by including metaAlias in the login URL (which is a required parameter). This parameter specifies the local alias for the service provider.

An example URL for a SP initiated login is:

The spSSOInit.jsp element of the URL is case-sensitive and the URL will fail if this is in the wrong case. For example, including spssoinit.jsp in the URL will not work.

See Also

How do I configure IdP or SP initiated Single Sign On in AM (All versions)?

How do I redirect to a specific page after a successful IdP or SP initiated login in AM (All versions)?

FAQ: SAML federation in AM

SAML Federation in AM

Implementing SSO and SLO

Related Training

ForgeRock Access Management Core Concepts (AM-400)

Related Issue Tracker IDs


Copyright and Trademarks Copyright © 2022 ForgeRock, all rights reserved.