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
* feat: add support for Laravel 11
* docs: update documentation for Laravel 11
* chore(ci): bump PHP versions used in test to 8.2+
* chore(gh): update bug report template with new versions
* docs: update with support for Laravel 11
Copy file name to clipboardExpand all lines: README.md
+49-50
Original file line number
Diff line number
Diff line change
@@ -11,30 +11,29 @@
11
11
12
12
**The Auth0 Laravel SDK is a PHP package that integrates [Auth0](https://auth0.com) into your Laravel application.** It includes no-code user authentication, extensive Management API support, permissions-based routing access control, and more.
13
13
14
-
-[Requirements](#requirements)
15
-
-[Getting Started](#getting-started)
16
-
-[1. Install the SDK](#1-install-the-sdk)
17
-
-[2. Install the CLI](#2-install-the-cli)
18
-
-[3. Configure the SDK](#3-configure-the-sdk)
19
-
-[4. Run the Application](#4-run-the-application)
20
-
-[Documentation](#documentation)
21
-
-[QuickStarts](#quickstarts)
22
-
-[Contributing](#contributing)
23
-
-[Code of Conduct](#code-of-conduct)
24
-
-[Security](#security)
25
-
-[License](#license)
14
+
-[Requirements](#requirements)
15
+
-[Getting Started](#getting-started)
16
+
-[1. Install the SDK](#1-install-the-sdk)
17
+
-[2. Install the CLI](#2-install-the-cli)
18
+
-[3. Configure the SDK](#3-configure-the-sdk)
19
+
-[4. Run the Application](#4-run-the-application)
20
+
-[Documentation](#documentation)
21
+
-[QuickStarts](#quickstarts)
22
+
-[Contributing](#contributing)
23
+
-[Code of Conduct](#code-of-conduct)
24
+
-[Security](#security)
25
+
-[License](#license)
26
26
27
27
## Requirements
28
28
29
-
Your application must use a [supported Laravel version](https://laravelversions.com/en), and your host environment must be running a [supported PHP version](https://www.php.net/supported-versions.php). Please review [our support policy](./docs/Support.md) for more information.
29
+
Your application must use the [latest supported Laravel version](https://endoflife.date/laravel), and your host environment must be running a [supported PHP version](https://www.php.net/supported-versions.php). Please review [our support policy](./docs/Support.md) for more information.
Due to breaking changes in Laravel 11, SDK 7.12 was the last version to support Laravel 9 and 10.
38
37
39
38
You will also need [Composer](https://getcomposer.org/) and an [Auth0 account](https://auth0.com/signup).
40
39
@@ -44,16 +43,16 @@ The following is our recommended approach to getting started with the SDK. Alter
44
43
45
44
### 1. Install the SDK
46
45
47
-
- For **new applications**, we offer a quickstart template — a version of the default Laravel 9 starter project pre-configured for use with the Auth0 SDK.
46
+
-For **new applications**, we offer a quickstart template — a version of the default Laravel 9 starter project pre-configured for use with the Auth0 SDK.
In this case, you will also need to generate an SDK configuration file for your application.
@@ -170,21 +169,21 @@ php artisan serve
170
169
171
170
Direct your browser to [http://localhost:8000](http://localhost:8000) to experiment with the application.
172
171
173
-
- **Authentication**
174
-
Users can log in or out of the application by visiting the [`/login`](http://localhost:8000/login) or [`/logout`](http://localhost:8000/logout) routes, respectively.
172
+
- **Authentication**
173
+
Users can log in or out of the application by visiting the [`/login`](http://localhost:8000/login) or [`/logout`](http://localhost:8000/logout) routes, respectively.
175
174
176
-
- **API Authorization**
177
-
For simplicity sake, generate a test token using the CLI.
175
+
- **API Authorization**
176
+
For simplicity sake, generate a test token using the CLI.
178
177
179
178
```shell
180
179
auth0 test token \
181
180
--audience %IDENTIFIER% \
182
181
--scopes "read:messages"
183
182
```
184
183
185
-
<p><small>✋ <em>Substitute <code>%IDENTIFIER%</code> with the identifier of the API you created in step 3 above.</small></em></p>
184
+
<p><small>✋ <em>Substitute <code>%IDENTIFIER%</code> with the identifier of the API you created in step 3 above.</small></em></p>
186
185
187
-
Now you can send requests to the `/api` endpoints of the application, including the token as a header.
186
+
Now you can send requests to the `/api` endpoints of the application, including the token as a header.
188
187
189
188
```shell
190
189
curl --request GET \
@@ -193,18 +192,18 @@ Direct your browser to [http://localhost:8000](http://localhost:8000) to experim
193
192
--header 'Authorization: Bearer %TOKEN%'
194
193
```
195
194
196
-
<p><small>✋ <em>Substitute <code>%TOKEN%</code> with the test token returned in the previous step.</small></em></p>
195
+
<p><small>✋ <em>Substitute <code>%TOKEN%</code> with the test token returned in the previous step.</small></em></p>
When you're ready to deploy your application to production, review [our deployment guide](./docs/Deployment.md) for best practices and advice on securing Laravel.
210
209
@@ -354,33 +353,33 @@ All the SDK's Management API methods are [documented here](./docs/Management.md)
354
353
355
354
## Documentation
356
355
357
-
- [Installation](./docs/Installation.md) — Installing the SDK and generating configuration files.
358
-
- [Configuration](./docs/Configuration.md) — Configuring the SDK using JSON files or environment variables.
359
-
- [Sessions](./docs/Sessions.md) — Guidance on deciding which Laravel Session API driver to use.
360
-
- [Cookies](./docs/Cookies.md) — Important notes about using Laravel's Cookie session driver, and alternative options.
361
-
- [Management API](./docs/Management.md) — Using the SDK to work with the [Auth0 Management API](https://auth0.com/docs/api/management/v2).
362
-
- [Users](./docs/Users.md) — Extending the SDK to support persistent storage and [Eloquent](https://laravel.com/docs/eloquent) models.
363
-
- [Events](./docs/Events.md) — Hooking into SDK [events](https://laravel.com/docs/events) to respond to specific actions.
364
-
- [Deployment](./docs/Deployment.md) — Deploying your application to production.
356
+
- [Installation](./docs/Installation.md) — Installing the SDK and generating configuration files.
357
+
- [Configuration](./docs/Configuration.md) — Configuring the SDK using JSON files or environment variables.
358
+
- [Sessions](./docs/Sessions.md) — Guidance on deciding which Laravel Session API driver to use.
359
+
- [Cookies](./docs/Cookies.md) — Important notes about using Laravel's Cookie session driver, and alternative options.
360
+
- [Management API](./docs/Management.md) — Using the SDK to work with the [Auth0 Management API](https://auth0.com/docs/api/management/v2).
361
+
- [Users](./docs/Users.md) — Extending the SDK to support persistent storage and [Eloquent](https://laravel.com/docs/eloquent) models.
362
+
- [Events](./docs/Events.md) — Hooking into SDK [events](https://laravel.com/docs/events) to respond to specific actions.
363
+
- [Deployment](./docs/Deployment.md) — Deploying your application to production.
365
364
366
365
You may find the following integration guidance useful:
367
366
368
-
- [Laravel Eloquent](./docs/Eloquent.md) — [Eloquent ORM](https://laravel.com/docs/eloquent) is supported.
369
-
- [Laravel Octane](./docs/Octane.md) — [Octane](https://laravel.com/docs/octane) is not supported at this time.
370
-
- [Laravel Telescope](./docs/Telescope.md) — [Telescope](https://laravel.com/docs/telescope) is compatible as of SDK v7.11.0.
367
+
- [Laravel Eloquent](./docs/Eloquent.md) — [Eloquent ORM](https://laravel.com/docs/eloquent) is supported.
368
+
- [Laravel Octane](./docs/Octane.md) — [Octane](https://laravel.com/docs/octane) is not supported at this time.
369
+
- [Laravel Telescope](./docs/Telescope.md) — [Telescope](https://laravel.com/docs/telescope) is compatible as of SDK v7.11.0.
371
370
372
371
You may also find the following resources helpful:
Copy file name to clipboardExpand all lines: docs/Deployment.md
+27-27
Original file line number
Diff line number
Diff line change
@@ -2,28 +2,28 @@
2
2
3
3
When you're preparing to deploy your application to production, there are some basic steps you can take to make sure your application is running as smoothly and securely as possible. In this guide, we'll cover some starting points for making sure your application is deployed properly.
4
4
5
-
-[Auth0 Configuration](#auth0-configuration)
6
-
-[TLS / HTTPS](#tls--https)
7
-
-[Cookies](#cookies)
8
-
-[Server Configuration](#server-configuration)
9
-
-[Caddy](#caddy)
10
-
-[Nginx](#nginx)
11
-
-[Apache](#apache)
12
-
-[Optimization](#optimization)
13
-
-[Autoloader](#autoloader)
14
-
-[Dependencies](#dependencies)
15
-
-[Caching Configuration](#caching-configuration)
16
-
-[Caching Events](#caching-events)
17
-
-[Caching Routes](#caching-routes)
18
-
-[Caching Views](#caching-views)
19
-
-[Debug Mode](#debug-mode)
5
+
-[Auth0 Configuration](#auth0-configuration)
6
+
-[TLS / HTTPS](#tls--https)
7
+
-[Cookies](#cookies)
8
+
-[Server Configuration](#server-configuration)
9
+
-[Caddy](#caddy)
10
+
-[Nginx](#nginx)
11
+
-[Apache](#apache)
12
+
-[Optimization](#optimization)
13
+
-[Autoloader](#autoloader)
14
+
-[Dependencies](#dependencies)
15
+
-[Caching Configuration](#caching-configuration)
16
+
-[Caching Events](#caching-events)
17
+
-[Caching Routes](#caching-routes)
18
+
-[Caching Views](#caching-views)
19
+
-[Debug Mode](#debug-mode)
20
20
21
21
## Auth0 Configuration
22
22
23
23
When migrating your Laravel application from local development to production, you will need to update your Auth0 application's configuration to reflect the new URLs for your application. You can do this by logging into the [Auth0 Dashboard](https://manage.auth0.com/) and updating the following fields:
24
24
25
-
-**Allowed Callback URLs**: The URL that Auth0 will redirect to after the user authenticates. This should be set to the Internet-accessible URL of your application's `/callback` route.
26
-
-**Allowed Logout URLs**: The URL that Auth0 will redirect to after the user logs out. This should be set to an appropriate Internet-accessible URL of your application.
25
+
-**Allowed Callback URLs**: The URL that Auth0 will redirect to after the user authenticates. This should be set to the Internet-accessible URL of your application's `/callback` route.
26
+
-**Allowed Logout URLs**: The URL that Auth0 will redirect to after the user logs out. This should be set to an appropriate Internet-accessible URL of your application.
27
27
28
28
Note that you can include multiple URLs in these fields by separating them with commas, for example `https://example.com/callback,http://localhost:8000/callback`.
0 commit comments