You are here

public function Authentication::get_wsfed_link in Auth0 Single Sign On 8.2

Build and return a WS-Federation link

@link https://auth0.com/docs/protocols/ws-fed

Parameters

null|string $client_id Client ID to use, null to use the value set during class initialization.:

array $params Request parameters for the WS-Fed request.:

  • params.client-id The client-id of your application.
  • params.wtrealm Can be used in place of client-id.
  • params.whr The name of the connection (used to skip the login page).
  • params.wctx Your application's state.
  • params.wreply The callback URL.

Return value

string

File

vendor/auth0/auth0-php/src/API/Authentication.php, line 206

Class

Authentication
Class Authentication

Namespace

Auth0\SDK\API

Code

public function get_wsfed_link($client_id = null, array $params = []) {
  return sprintf('https://%s/wsfed/%s?%s', $this->domain, empty($client_id) ? $this->client_id : $client_id, Psr7\build_query($params));
}