Download the PHP package univicosa/laravel-openid-client without Composer

On this page you can find all versions of the php package univicosa/laravel-openid-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 laravel-openid-client

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 users permissions and render the Login Button in case you have not authenticated page, just call the Blade directive under your header component.

@login('route.name'):

The login directive will call the route you pass or return the oauth path formated with the continue parameter to the required route.

Redirecting routes

The dynamic route from Oauth system can redirect the user back to the source using the ?continue url parameter.

The following example will be redirect back to the source after the user executes the actions needed in the Oauth Service page:


All versions of laravel-openid-client with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
guzzlehttp/guzzle Version ^6.3
laravel/framework Version ^5.4
lcobucci/jwt Version ^3.2
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 univicosa/laravel-openid-client contains the following files

Loading the files please wait ....