Skip to content

Commit

Permalink
chore: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Sep 24, 2024
1 parent 6d77757 commit 345f409
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,20 +212,21 @@ services:
### Override login link URL

Roadiz User Bundle provides a custom `Symfony\Component\Security\Http\LoginLink\LoginLinkHandlerInterface` service to generate a login-link with a different **base-uri**,
all you need is to register `RZ\Roadiz\UserBundle\Security\Security\FrontendLoginLinkHandler` service in your project with its mandatory arguments:
all you need is to register `RZ\Roadiz\UserBundle\Security\FrontendLoginLinkHandler` service in your project with its mandatory arguments:

```yaml
# config/services.yaml
services:
RZ\Roadiz\UserBundle\Security\Security\FrontendLoginLinkHandler:
$decorated: '@RZ\Roadiz\UserBundle\Security\Security\FrontendLoginLinkHandler.inner'
arguments:
$decorated: '@App\Security\LoginLinkHandler.inner'
$frontendLoginCheckRoute: '%frontend_login_check_route%'
$frontendLoginLinkRequestRoutes:
- 'frontend_login_link_request_route'
- 'another_login_link_request_route'
$signatureHasher: '@security.authenticator.login_link_signature_hasher.api_login_link'
RZ\Roadiz\UserBundle\Security\FrontendLoginLinkHandler:
decorates: Symfony\Component\Security\Http\LoginLink\LoginLinkHandlerInterface
arguments:
$decorated: '@RZ\Roadiz\UserBundle\Security\FrontendLoginLinkHandler.inner'
$frontendLoginCheckRoute: '%frontend_login_check_route%'
$frontendLoginLinkRequestRoutes:
- 'frontend_user_login_link_request'
- 'public_user_login_link_request'
- 'api_user_signup'
$signatureHasher: '@security.authenticator.login_link_signature_hasher.api_login_link'
```
Now for each `$frontendLoginLinkRequestRoutes` login_link will be generated using `$frontendLoginCheckRoute` base URL

Expand Down

0 comments on commit 345f409

Please sign in to comment.