com\setasign\Konquadrat

SsoHelper Class SsoHelper

File: /Konquadrat/src/SsoHelper.php

Class hierarchy

Summary

Constants

DEFAULT_AUTH_SOURCE

protected const SsoHelper::DEFAULT_AUTH_SOURCE = 'default-sp'

Properties

$config

protected SsoHelper::$config

Methods

__construct()

public SsoHelper::__construct (
\com\setasign\SetaFramework\Application\ApplicationConfig $config
)
Parameters
$config : \com\setasign\SetaFramework\Application\ApplicationConfig
 

auth()

public SsoHelper::auth (
?string $returnTo = null
): void

Note this method will end the script by using "exit"

Parameters
$returnTo : ?string
 
Exceptions

Throws \setasign\SetaSso\ForceResponseException if using SetaSso

getAttributes()

public SsoHelper::getAttributes (
void
): array

This function will retrieve the attributes of the current user if the user is authenticated. If the user isn't authenticated, it will return an empty array.

getAuth()

protected SsoHelper::getAuth (
void
): \SimpleSAML\Auth\Simple|\setasign\SetaSso\AuthSource\AuthSourceInterface

isAuthenticated()

public SsoHelper::isAuthenticated (
void
): bool

isEnabled()

public SsoHelper::isEnabled (
void
): bool

localLogout()

public SsoHelper::localLogout (
void
): void

logout()

public SsoHelper::logout (
?string $returnTo = null
): void

Note this method will end the script by using "exit"

Parameters
$returnTo : ?string
 
Exceptions

Throws \setasign\SetaSso\ForceResponseException if using SetaSso

requireAuth()

public SsoHelper::requireAuth (
?string $returnTo = null
): void

Note this method may end the script by using "exit"

Parameters
$returnTo : ?string
 
Exceptions

Throws \setasign\SetaSso\ForceResponseException if not authentified and using SetaSso