Token Verification

Token verification is as simple as the following:

use SSOfy\Client;
use SSOfy\Models\APIResponse;
...
$client = new Client($config);

/** 
 * @var APIResponse $result 
 */
$result = $client->verifyAuthentication('TOKEN');

Note: The token parameter may or may not be preceded by Bearer.

Most server-side applications expect the token in their request's Authorization header to begin with 'Bearer...'. The verifyAuthentication() method strips the prefix from your string automatically as it shouldn't be included when sent to the api for verification.

ssofy Knowledge Base
At our core, we believe that staying up-to-date with the latest trends and advancements in Authentication and related areas is essential. That's why we take great pride in keeping you informed with the latest insights, updates, and news in this rapidly evolving landscape.


Do you need support?
SSOfy is by Cubelet Ltd.
Copyright © 2024 Cubelet Ltd. All rights reserved.