Skip to content

agungprsty/sso-with-laravel-passport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSO with Laravel Passport

sso-laravel

Introduction

In this repository, we’re going to explore how you could set up a fully fledged OAuth2 server in Laravel using the Laravel Passport library.

Requirement

  • Docker ^19.*

Usage

  1. Click Use this template
  2. Git clone & change directory
  3. Copy .env.example to .env
  4. Execute the following command
$ make init # Setup project

URL Application

How To Use

Step 1: Login to app

login to app

Credential:
- Email: admin@example.com
- Password: password

Next, click button Login.

Step 2: Generate Access Token

generate access token

Result

access token

Step 3: Set Credential to .env

Copy:

  • Client-ID
  • Redirect
  • Secret

To .env

Update .env

Next, now logout from app

Last step

Back to page login, next click buttom Login with LaravelOauth. Before do login check your network in page.

Network

Make sure, already to access url authorize?client_id=<and_more>. Next login again.