WRDAuthPlugin::InitiateSAMLIdPInitiatedLogin (open)

Initiates a SAML initiated login. Looks up the SAML IdP endpoint file in the current site and lets that file start the flow for the currently logged in user

Syntax

LOADLIB "mod::wrd/lib/internal/auth/webdesignplugin.whlib";

RECORD FUNCTION InitiateSAMLIdPInitiatedLogin(STRING spentityid)

Parameters

STRING spentityid

Entity id of the connected SP to login

Return value

RECORD

Submitinstruction (See ExecuteSubmitInstruction)

STRING code

Error code

  • 'idpendpointnotfound': Endpoint file for the IdP was not found
RECORD form

Form data (only for type 'form')

STRING form.action

Form action URI

STRING form.method

Form method (allowed values: 'GET', 'POST')

RECORD ARRAY form.vars

Form variables to post

STRING form.vars.name

Name of the variable

STRING form.vars.value

Value of the variable

BOOLEAN success

Whether the call was successfull

STRING type

Instruction type ('reload', 'redirect', 'form', 'postmessage', 'close')

STRING url

Redirect URL (only for type 'redirect')