kayrules/authkeepr

TM SSO auth-keeper middleware

Installs: 251

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:laravel-middleware

1.3 2018-07-13 17:17 UTC

This package is auto-updated.

Last update: 2024-11-18 04:54:04 UTC


README

install

composer require kayrules/authkeepr

define middleware in bootstrap/app.php

$app->routeMiddleware([
    'authkeepr' => Kayrules\AuthKeepr\Http\Middleware\AuthKeepr::class,
]);

using the middleware in routes/web.php

$api->version('v1', [
	'middleware' => 'authkeepr',
], function ($api)
{
	//
});

declare .env variable to token provider url

AUTHKEEPR_SSO_URL=http://domain.com/auth/token

if the SSO provider apply strict header match, enter this in .env

AUTHKEEPR_SSO_ACCEPT_HEADER=application/vnd.strict.v1+json