Code Monkey home page Code Monkey logo

laravel-directory-authentication-sample's Introduction

Laravel Directory Auth Sample Application

This application exists to provide sample usage for the Composer package located here: https://github.com/csun-metalab/laravel-directory-authentication.

This repository implements both the LDAP and local directory authentication functionality in the package. By default, the local database authentication mechanism is the one active by default but everything needed to leverage the LDAP method is included as well.

Take a look at the following files:

General Functionality

  • app/Http/Controllers/AuthController.php
  • app/Http/Controllers/HomeController.php
  • app/LocalUser.php (used by the local database functionality)
  • app/User.php (used by the LDAP functionality)

Configuration

  • config/app.php
  • config/auth.php (configuration for LDAP-specific authentication)
  • config/dbauth.php (configuration for database-specific authentication)

Database Stuff

  • database/migrations/2014_10_12_000000_create_local_users_table.php (local_users table for the local DB functionality)

You can just create a database table called users to leverage the LDAP functionality.

  • database/seeds/LocalUsersTableSeeder.php (creates two local user accounts in the local_users table)

Views

  • resources/views/auth/passwords/reset.blade.php (LDAP password reset functionality)
  • resources/views/auth/login.blade.php (login functionality)
  • resources/views/auth/register.blade.php (LDAP account creation functionality)
  • resources/views/layouts/app.blade.php (master template)
  • resources/views/home.blade.php (post-authentication Home screen)

Routes

  • routes/web.php (all of the routes are here)

laravel-directory-authentication-sample's People

Contributors

matthewfritz avatar

Watchers

 avatar  avatar

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.