Configurations Breakdown

View Source (config/ssofy-server.php)

php artisan vendor:publish --tag=ssofy:config

The secret is required for verifying the signature of incoming requests as well as generating signed responses.

Obtain the secret from the panel's Application Profile page.

📌 Info

Learn more about the SSOfy's Sign and Verify process.

SSOFY_API_SECRET=

Specify which queue the SDK should use to send the events.

SSOFY_EVENT_QUEUE=default

Set the cache driver for OTP Code storage. As well as branding settings and channels for sending OTP codes by Email and SMS.

SSOFY_OTP_CACHE_DRIVER=file
SSOFY_OTP_EMAIL_CHANNEL=email
SSOFY_OTP_SMS_CHANNEL=vonage

Specify the authentication methods you want to make available from your server.

If your login page doesn't allow password entry and relies solely on OTP verification, you must enable the passwordless authentication option. Without a password, the authentication endpoint then responds with user information.

Point to any custom repository implementations here.

Learn how to create your own Repositories.

SDK will default to Laravel's standard User model and column names in the users table.

📌 Info

All data queries are carried out within the Repositories.

If your model or column names differ, you can configure them here to map to your customized column names.

The filter configuration is another important setting in this section. Read the UserFilter page for details.

The default Repository implementation reads the scopes and clients configuration from this section of the configuration file. However, for more complicated scenarios, such as reading from a database, you may consider overriding the ClientRepository and ScopeRepository with your own custom repository implementations.

Configure an array of scopes in the scopes property, where the array key represents the id of scope.

Configure an array of clients in the clients property, where the array key represents the id of client.

ssofyKnowledge 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.