The Telerik Platform product is retired.Learn more

Integrating Passive SAML Federation

Integrating Passive SAML Federation

Passive federation relies on a user agent (the device's web browser) to do most of the communication between the device and the SAML IdP. That said, you still need to know what URL to request and how to acquire the SAML assertion from the SAML IdP. The security benefit of passive federation is that the user never provides their SAML IdP credentials to your app.

The detailed passive federation workflow is presented in Introduction to SAML Login Integration.


You need to make certain settings before you can successfully log in your app users through SAML authentication.

Preparing the Request URL

To request a SAML assertion from the SAML IdP you need to open the device's web browser and point it to the appropriate URL. This URL depends on the SAML IdP that you use. Consult its documentation for details.

Extracting the SAML Assertion

After the browser contacts the SAML IdP and performs authentication, the SAML IdP redirects the browser to the Telerik Platform Reply URL and posts the SAML token to it. The server logic behind the Reply URL URL-encodes the SAML response and redirects the user device browser to localhost appended with the access_token HTML parameter containing the SAML assertion. You need to parse the resulting URL to extract the SAML assertion from it.

The URL has the following format:


Where saml-assertion is the URL-encoded SAML assertion.

Registering or Authenticating a User

The Backend Services JavaScript SDK provides a single method that is used for both registration and authentication. On first invocation the user is registered with Telerik Platform. On consequent invocations for the same user Telerik Platform authenticates the user.

The Authentication.loginWithSAML() method takes a URL-encoded SAML assertion that you must have acquired beforehand. On success, the method returns an object containing a Telerik Platform access token (not to be mistaken with the SAML assertion) that can be used with further Backend Services JavaScript SDK operations. In that, the loginWithSAML() method behaves similarly to the login() method. If the user has already been registered, the object contains Id and CreatedAt fields in addition.

var el = new Everlive('your-app-id');
var accessToken = "SAML assertion here";
    function (data) {

See Also

Contact us: +1-888-365-2779
Copyright © 2016-2018, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.