Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how to generate signed urls #100

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions docs/get-started/routing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,20 @@ Select provider:
Based on your answers, it will generate a table with the following columns:

```shell
+-------------+--------------------------------------------------------------------------------+
| Provider | URL |
+-------------+--------------------------------------------------------------------------------+
| App Store | http://localhost/liap/notifications?signature=<signature>&provider=app-store |
| Google Play | http://localhost/liap/notifications?signature=<signature>&provider=google-play |
+-------------+--------------------------------------------------------------------------------+
+-------------+--------------------------------------------------------------------------------------+
| Provider | URL |
+-------------+--------------------------------------------------------------------------------------+
| App Store | https://yourdomain.com/liap/notifications?signature=<signature>&provider=app-store |
| Google Play | https://yourdomain.com/liap/notifications?signature=<signature>&provider=google-play |
+-------------+--------------------------------------------------------------------------------------+
```

The generated URLs will be used to receive the [server notifications](/docs/category/server-notifications).

If the URLs start with `http://localhost`, you should modify your Laravel configuration, typically by setting the
APP_URL environment variable to your desired domain, and rerun `php artisan liap:url`. Do _not_ manually edit the
URLs, as that will invalidate the signature.

## Validating a signed route requests

In order to verify that an incoming request has a valid signature, you should set the `routing.signed` key to `true`.
Expand Down