class AdminSessionAuthenticator extends AbstractGuardAuthenticator

Authenticator used for user authentication against Pimcore backend-session.

Accessing the /pimprint-api/... routes via Browser is useful for developing and debugging PimPrint.

Traits

Trait to detect requests from PimPrint InDesign Plugin.

Methods

bool
isInDesignRequest(Request $request)

Returns true if $request comes from PimPrint InDesign-Plugin.

bool
supports(Request $request)

{@inheritDoc}

Response
start(Request $request, AuthenticationException $authException = null)

{@inheritDoc}

string
getLoginMessage()

Returns authorization required message.

array
getCredentials(Request $request)

{@inheritDoc}

UserInterface|null
getUser(array $credentials, UserProviderInterface $userProvider)

{@inheritDoc}

bool
checkCredentials(array $credentials, UserInterface $user)

{@inheritDoc}

Response
onAuthenticationFailure(Request $request, AuthenticationException $exception)

{@inheritDoc}

null
onAuthenticationSuccess(Request $request, TokenInterface $token, string $providerKey)

{@inheritDoc}

bool
supportsRememberMe()

{@inheritDoc}

Details

protected bool isInDesignRequest(Request $request)

Returns true if $request comes from PimPrint InDesign-Plugin.

Parameters

Request $request

Return Value

bool

at line 47
bool supports(Request $request)

{@inheritDoc}

Parameters

Request $request

Return Value

bool

at line 60
Response start(Request $request, AuthenticationException $authException = null)

{@inheritDoc}

Parameters

Request $request
AuthenticationException $authException

Return Value

Response

at line 70
protected string getLoginMessage()

Returns authorization required message.

Return Value

string

at line 82
array getCredentials(Request $request)

{@inheritDoc}

Parameters

Request $request

Return Value

array

at line 101
UserInterface|null getUser(array $credentials, UserProviderInterface $userProvider)

{@inheritDoc}

Parameters

array $credentials
UserProviderInterface $userProvider

Return Value

UserInterface|null

at line 122
bool checkCredentials(array $credentials, UserInterface $user)

{@inheritDoc}

Parameters

array $credentials
UserInterface $user

Return Value

bool

See also

AdminAuthenticator::checkCredentials

at line 139
Response onAuthenticationFailure(Request $request, AuthenticationException $exception)

{@inheritDoc}

Parameters

Request $request
AuthenticationException $exception

Return Value

Response

at line 153
null onAuthenticationSuccess(Request $request, TokenInterface $token, string $providerKey)

{@inheritDoc}

Parameters

Request $request
TokenInterface $token
string $providerKey

Return Value

null

at line 163
bool supportsRememberMe()

{@inheritDoc}

Return Value

bool