{"repo":"univicosa/laravel-openid-client","free":true,"listed":false,"github":"https://github.com/univicosa/laravel-openid-client","clone":"git clone https://github.com/univicosa/laravel-openid-client.git","description":"univicosa/laravel-openid-client is a Laravel package which created to integrate the Oauth server to ours Laravel project's that requires authentication.","language":"PHP","stars":10,"topics":["laravel","openid","oauth-server","laravel-passport","laravel-socialite","sso"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Univiçosa Laravel OpenId Client univicosa/laravel-openid-client is a Laravel package which created to integrate the Oauth server to ours Laravel project's that requires authentication. Install Installation using composer: For Laravel versions < 5.5 add the service provider in config/app.php : To personalize the config, publish the package's configuration file by running: The file config/openid.php will be generated. Oauth public key Your system need the oauth public key to connect and communicate with the Oauth Server.So you need to copy the public key file to storage folder of your project. Redirecting to Login In the file app\\Exceptions\\Handler.php find or overwrite the unauthenticated method and change the redirect route to: .env File Set a variable called SESSION LIFETIME in the .env file and define it to the time in minutes you want to keep the logged session. The max time of the Oauth Server keeps the session is 240 minutes (4 hours). Change Kernel.php In file app/Http/Kernel.php change the attribute $routeMiddleware For change the Guard change the file config\\auth.php to: Facades The client methods are available under the facade \\OpenId . The authentication methods like the verifier \\Auth::check() are available under the Facade \\Illuminate\\Support\\Facades\\Auth ; The facade \\Oauth2 provides all helpers needed to get and post data from the Oauth Server. \\Ouath2 methods available View components @openidComponents : For load the user's logged menu, the fast access with the","default_branch":null,"files":null,"tree":[],"storefront":"/r/univicosa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/univicosa/laravel-openid-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}