Coder Social home page Coder Social logo

uschmann / laravel-saml-sp-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from taiyeoguns/laravel-saml-sp-demo

0.0 2.0 0.0 176 KB

Demo

Home Page: https://laravel-saml-sp-demo.herokuapp.com

PHP 89.02% ApacheConf 0.58% JavaScript 1.18% Vue 0.59% HTML 8.63%

laravel-saml-sp-demo's Introduction

Laravel SAML SP Demo

Demo - https://laravel-saml-sp-demo.herokuapp.com

Overview

Laravel 5.4 application showing implementation of SAML authentication as a Service Provider.

This demo uses the aacotroneo/laravel-saml2 package and SSOCircle as Identity Provider.

Installation

Clone Project

git clone https://github.com/taiyeoguns/laravel-saml-sp-demo.git laravelsamlspdemo

Install Composer dependencies

cd laravelsamlspdemo
composer install

Maintain database details in .env file

cp .env.example .env

Migrate tables

php artisan migrate

Generate app key and start server

php artisan key:generate && php artisan serve

IdP Setup

  • Login to SSOCircle or create an account.
  • Click on Manage Metadata and select Add new Service Provider.
  • For FQDN, enter:
    http://localhost:8000
  • Select all Assertion attributes, FirstName, LastName, EmailAddress
  • In the Laravel application, browse to: http://localhost:8000/saml2/metadata and copy the xml
  • Back in SSOCircle metadata, paste the copied xml in Insert your metadata information
  • Click Submit to save metadata.

Test

  • Browse to http://localhost:8000
  • Click on Login link.
  • You will be forwarded to the SSOCircle. After successful authentication at the IdP, it will redirect to the Laravel application and user will be logged in.

Further Information

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.