Download the PHP package track-any-device/sso-client without Composer

On this page you can find all versions of the php package track-any-device/sso-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sso-client

track-any-device/sso-client

OAuth2 SSO client for the Track Any Device platform — Socialite driver, callback controller, and route helper that integrate with package-sso-server (Passport-backed central auth).


Requirements

Dependency Version
PHP ^8.3
Laravel ^13.7
laravel/socialite ^5.0
track-any-device/core ^0.0.2
Stancl/Tenancy (host app) ^3.x

Installation

Laravel's package auto-discovery registers SsoClientServiceProvider automatically.

Publish the config stub:


Environment variables

Add to the host app's .env (and config/services.php):

Map them in config/services.php:

And surface in config/app.php (or a custom config file — see issue #3):


Routes the host app must register

Call SsoClient::routes() inside the tenant route group so the callback is scoped correctly. The route must be exempt from any AuthorizeTenantAccess middleware that guards authenticated routes.

Registered route:

Method URI Name Controller
GET /sso/callback tenant.sso.callback SsoCallbackController

Auth flow

  1. The service provider registers a sso Socialite driver backed by SsoProvider.
  2. On boot, it resolves OAuth2 client credentials from the oauth_clients table (column kind matches APP_SURFACE), falling back to config/services.php when the DB is unavailable (local dev).
  3. SsoCallbackController handles the callback, logs the user in, and carries OTP freshness across the SSO boundary via the sms_2fa_verified session key.

Session key written by this package

Key Type Meaning
sms_2fa_verified bool Set to true when the user's last_otp_validated_on is within 15 minutes. Host-app 2FA middleware must read this key to skip re-challenge.

Flash key written on failure

Key Value
errors_sso Human-readable error string

Read in Blade: @if(session('errors_sso')) … @endif


Release workflow convention

The release workflow (.github/workflows/release.yml) auto-tags and publishes a GitHub release on every push to main. It derives the version bump from conventional commit prefixes:

Commit prefix Bump
feat!: / BREAKING CHANGE major
feat: minor
fix:, chore:, docs:, refactor:, perf:, style:, test:, ci: patch

Manual dispatch lets you override the bump type (patch / minor / major) regardless of commit messages.

No version field is kept in composer.json; Packagist reads the git tag.


All versions of sso-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel/framework Version ^13.7
laravel/socialite Version ^5.0
track-any-device/core Version ^0.8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package track-any-device/sso-client contains the following files

Loading the files please wait ...