2017 © Pedro Peláez
 

laravel-package laravel

Build simple, secure web applications with Stormpath and Laravel!

image

stormpath/laravel

Build simple, secure web applications with Stormpath and Laravel!

  • Monday, March 6, 2017
  • by bretterer
  • Repository
  • 24 Watchers
  • 33 Stars
  • 1,205 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 11 Open issues
  • 18 Versions
  • 0 % Grown

The README.md

Build Status Codecov Latest Stable Version Latest Unstable Version License, (*1)

Getting Started

Follow these steps to add Stormpath user authentication to your Laravel app., (*2)

  1. Download Your Key File, (*3)

    Download your key file from the Stormpath Console., (*4)

  2. Store Your Key As Environment Variables, (*5)

    Open your key file and grab the API Key ID and API Key Secret, then add this to your .env file in the root of your project:, (*6)

    STORMPATH_CLIENT_APIKEY_ID=<YOUR-ID-HERE>
    STORMPATH_CLIENT_APIKEY_SECRET=<YOUR-SECRET-HERE>
    
  3. Get Your Stormpath App HREF, (*7)

    Login to the Stormpath Console and grab the HREF (called REST URL in the UI) of your Application. It should look something like this:, (*8)

    https://api.stormpath.com/v1/applications/q42unYAj6PDLxth9xKXdL, (*9)

  4. Store Your Stormpath App HREF In the .env file, (*10)

    STORMPATH_APPLICATION_HREF=<YOUR-STORMPATH-APP-HREF>
    
  5. Install The Package, (*11)

    Open your composer.json file and add the following to your require block:, (*12)

    "stormpath/laravel": "^0.4"
    
  6. Include It In Your App, (*13)

    Open you config/app.php file and add the following to your providers section, (*14)

    Stormpath\Laravel\Support\StormpathLaravelServiceProvider::class
    
  7. Configure It, (*15)

    To modify the configuration of the package, you will need to publish the config file. Run the following in your terminal:, (*16)

    $ php artisan vendor:publish
    
  8. Protect Your Routes, (*17)

    You can use stormpath.auth as a middleware to protect your routes:, (*18)

    Route::get('/page', ['middleware'=>'stormpath.auth']);
    

    If the user tries to access this route without being logged in, they will be redirected to the login page., (*19)

    If you want to make sure ONLY guests can use the route, You can use stormpath.guest as a middleware:, (*20)

    Route::get('/page', ['middleware'=>'stormpath.guest']);
    

    If the user tries to access this route while logged in, they will be redirected to the home page., (*21)

  9. Login, (*22)

    To access a protected route, the user must first login., (*23)

    You can login by visiting the /login URL and submitting the login form., (*24)

  10. Register, (*25)

    To be able to login, your users first need an account., (*26)

    Users can register by visiting the /register URL and submitting the registration form., (*27)

  11. That's It!, (*28)

    You just added user authentication to your app with Stormpath. See the documentation for further information on how Stormpath can be used with your Laravel app., (*29)

Documentation

For basic documentation of this library, see the documentation., (*30)

Support

If you are having issues with this package, please feel free to submit an issue on this github repository. If it is an issue you are having that needs a little more private attention, please feel free to contact us at support@stormpath.com or visit our support center., (*31)

Contributing

We welcome anyone to make contributions to this project. Just fork the develop branch of this repository, make your changes, then issue a pull request on the develop branch., (*32)

Any pull request you make will need to have associated tests with them. If a test is not provided, the pull request will be closed automatically. Also, any pull requests made to a branch other than develop will be closed and a new submission will need to be made to the develop branch., (*33)

We regularly maintain this repository, and are quick to review pull requests and accept changes!, (*34)

Copyright © 2013-2015 Stormpath, Inc. and contributors., (*35)

This project is open-source via the Apache 2.0 License., (*36)

The Versions

06/03 2017

dev-develop

dev-develop

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

30/12 2016

dev-update-sphinx-theme

dev-update-sphinx-theme

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

21/12 2016

dev-master

9999999-dev

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

21/12 2016

0.5.1

0.5.1.0

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

21/12 2016

dev-docs-update

dev-docs-update

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

23/11 2016

0.5.0

0.5.0.0

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

20/09 2016

0.4.2

0.4.2.0

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

24/06 2016

0.4.1

0.4.1.0

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

06/04 2016

0.4.0

0.4.0.0

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

17/03 2016

0.3.1

0.3.1.0

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

28/01 2016

0.2.0

0.2.0.0

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

06/01 2016

0.1.0

0.1.0.0

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

04/01 2016

0.1.0.RC3

0.1.0.0-RC3

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

23/12 2015

0.1.0.RC2

0.1.0.0-RC2

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

16/12 2015

0.1.0.RC1

0.1.0.0-RC1

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

15/12 2015

0.1.0.alpha2

0.1.0.0-alpha2

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath

04/12 2015

0.1.0.alpha1

0.1.0.0-alpha1

Build simple, secure web applications with Stormpath and Laravel!

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel authentication authorization accounts users stormpath