Discuss this help topic in SecureBlackbox Forum

Send an HTTP(S) request using SAML authentication

Major part of SAML usage scenarios imply web browser usage to redirect data from SP to IdP and vice versa and to enter login credentials. Therefore, it is impossible to create a universal authentication algorithm which satisfies any SAML configuration. Part of this process, however, may be automated.

First of all, create a new instance of TElSAMLAdapter and assign it to TElHTTPSClient.SAMLAdapter property. Then you should set TElSAMLAdapter.SAMLSettings.Enabled property to true and implement the TElSAMLAdapter.OnSAMLCredentialsChallenge event handler. This handler is used to process the login web form passed from the Identity Provider (IdP) to the client and should return (a) the URL contained in the form's action attribute, via the TargetURL parameter, and (b) values for all input fields like login and password in form "input_name=value", the via Fields parameter.

The component parses common forms automatically, however if some non-standard form is received you can use TElSAMLAdapter.OnSAMLParseForm event handler to parse it manually.

How To articles about SAML client

Discuss this help topic in SecureBlackbox Forum