You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,19 @@
1
1
# Laravel Auth0 Plugin
2
2
3
-
This plugin helps you integrate your [Laravel](https://laravel.com/) WebApp with [Auth0](https://auth0.com/) to achieve Single Sign On with a few simple steps.
4
-
5
-
- Master targets compatibility with Laravel 5.7 and above.
6
-
- The 3.x branch (not maintained) targets Laravel 5.2 compatibility.
7
-
- The 2.x branch (not maintained) targets Laravel 5.0 and 5.1 compatibility.
8
-
- If you are working with an older version (Laravel 4.x), use version 1.0.* (not maintained)
This plugin helps you integrate your [Laravel](https://laravel.com/) WebApp with [Auth0](https://auth0.com/) to achieve Single Sign On with a few simple steps.
10
+
11
+
## Supported Framework Versions
12
+
13
+
Our plugin maintains support for [all actively supported versions](https://laravel.com/docs/8.x/releases#support-policy) of the Laravel framework, including [6.X (LTS)](https://laravel.com/docs/8.x/releases), [7.X](https://laravel.com/docs/7.x/releases) and [8.X](https://laravel.com/docs/8.x/releases).
14
+
15
+
Past releases of our plugin may potentially run on earlier, now unsupported versions of the Laravel framework, but these releases are not maintained. The final release of our plugin to support the Laravel 5.X series was 6.1.0.
16
+
16
17
## Documentation
17
18
18
19
Please see the [Laravel webapp quickstart](https://auth0.com/docs/quickstart/webapp/laravel) for a complete guide on how to install this in an existing project or to download a pre-configured sample project. Additional documentation on specific scenarios is below.
@@ -50,6 +51,7 @@ You can customize the way you handle the users in your application by creating y
50
51
### Using auth guard
51
52
52
53
To protect APIs using an access token generated by Auth0, there is an `auth0` API guard provided ([Laravel documentation on guards](https://laravel.com/docs/7.x/authentication#adding-custom-guards)). To use this guard, add it to `config/auth.php` with the driver `auth0`:
54
+
53
55
```
54
56
'guards' => [
55
57
...
@@ -68,6 +70,7 @@ To protect APIs using an access token generated by Auth0, there is an `auth0` AP
68
70
```
69
71
70
72
Once that has been added, add the guard to the middleware of any API route and check authentication during the request:
73
+
71
74
```
72
75
// get user
73
76
auth('auth0')->user();
@@ -118,5 +121,4 @@ Auth0 helps you to easily:
118
121
119
122
The Auth0 Laravel Login plugin is licensed under MIT - [LICENSE](LICENSE.txt)
0 commit comments