Download the PHP package sunxyw/spiral-auth0-bridge without Composer
On this page you can find all versions of the php package sunxyw/spiral-auth0-bridge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sunxyw/spiral-auth0-bridge
More information about sunxyw/spiral-auth0-bridge
Files in sunxyw/spiral-auth0-bridge
Package spiral-auth0-bridge
Short Description This is my package spiral-auth0-bridge
License MIT
Homepage https://github.com/sunxyw/spiral-auth0-bridge
Informations about the package spiral-auth0-bridge
This is my package spiral-auth0-bridge
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Requirements
Make sure that your server is configured with following PHP version and extensions:
- PHP 8.1+
- Spiral framework 3.0+
Installation
You can install the package via composer:
After package install you need to register bootloader from the package.
Note: if you are using
spiral-packages/discoverer
, you don't need to register bootloader by yourself.
Usage
Register the \Sunxyw\SpiralAuth0Bridge\Security\Auth0TokenStorage
token storage via config or bootloader, you may find
documentation here.
Then, register the actor provider \Sunxyw\SpiralAuth0Bridge\Security\Auth0ActorProvider
via bootloader too,
documentation may
find here.
You may want to scroll down the documentation page to find the registration steps.
Please remember to configure your AuthTransportMiddleware too, otherwise, Auth0 bridge will not able to retrieve the token. Docs.
After that, you can obtain the actor using AuthContextInterface
.
The actor will be an instance of \Sunxyw\SpiralAuth0Bridge\Security\Auth0Actor
.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Sunxyw
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of spiral-auth0-bridge with dependencies
auth0/auth0-php Version ^8.7
spiral/auth Version ^3.7
spiral/auth-http Version ^3.7
spiral/boot Version ^3.7
spiral/console Version ^3.7