Download the PHP package redsnapper/socialite-swissrx without Composer
On this page you can find all versions of the php package redsnapper/socialite-swissrx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download redsnapper/socialite-swissrx
More information about redsnapper/socialite-swissrx
Files in redsnapper/socialite-swissrx
Package socialite-swissrx
Short Description A Laravel Socialite provider for Swiss Rx, an authentication system for Swiss healthcare professionals.
License MIT
Informations about the package socialite-swissrx
Sociaite/Swiss-Rx
A Laravel Socialite driver for Swiss RX, an authentication system for Swiss healthcare professionals
This repo can be used to provide OAuth authentication with [Swiss Rx] (https://swiss-rx-login.ch/).
Installation
You can install the package via composer:
Add event listener mapping in your EventServiceProvider.php
Then go to your services.php and add swissrx credentials. When using your callback, make sure it's registered with swiss-rx first.
And finally add your Swiss-Rx key and secret to the .env
file:
Usage
Register your routes
Then in your controller call the redirectToProvider()
and handleProviderCallback()
:
Scopes
By default the anonymous
scope is used, which will not return any user data other than their ID. To retrieve user data use the socialite method setScopes()
to request the personal
scope:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of socialite-swissrx with dependencies
ext-json Version *
socialiteproviders/manager Version ~4.0
firebase/php-jwt Version ^6.4