Method | Description | |
---|---|---|
__construct ( string $secret ) | Discourse_SSO constructor. | |
build_login_string ( array $params ) : string | Creates the sso-login query params that are sent to Discourse. | |
get_nonce ( string $payload ) : mixed | Gets the nonce from the payload. | |
validate ( string $payload, string $sig ) : boolean | Validates the payload against the sig. |
public __construct ( string $secret ) | ||
$secret | string | The SSO secret key. |
public build_login_string ( array $params ) : string | ||
$params | array | The array of parameters to send. |
return | string |