-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,166 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
sidebar_position: 4 | ||
sidebar_label: Debugging Tools | ||
--- | ||
|
||
# Debugging Tools | ||
|
||
[LmcRbacMvcDeveloperTools](https://github.com/LM-Commons/LmcRbacMvcDeveloperTools) is an extension | ||
for the [Laminas Developer Tools](https://github.com/laminas/laminas-developer-tools), | ||
that collects and displays debugging data on settings, guards and roles. | ||
|
||
## Installation | ||
|
||
```shell | ||
$ composer require --dev lm-commons/lmc-rbac-mvc-devtools | ||
``` | ||
|
||
Composer should ask to install the module. Typically, this module will go in `development.config.php`. | ||
|
||
## Toolbar | ||
|
||
LmcRbacMvcDeveloperTools provides toolbars to view settings, guards and roles: | ||
|
||
![Settings](images/settings.png) | ||
![Guards](images/guards.png) | ||
![Roles](images/roles.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
docs/versioned_docs/version-4.0/Guides/identity-providers.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: Create a custom identity provider | ||
sidebar_label: Custom Identity Providers | ||
sidebar_position: 2 | ||
--- | ||
|
||
Identity providers return the current identity. Most of the time, this means the logged in user. LmcRbacMvc comes with a | ||
default identity provider (`Lmc\Rbac\Mvc\Identity\AuthenticationIdentityProvider`) that uses the | ||
`Laminas\Authentication\AuthenticationService` service. | ||
|
||
### Create your own identity provider | ||
|
||
If you want to implement your own identity provider, create a new class that implements | ||
`Lmc\Rbac\Mvc\Identity\IdentityProviderInterface` class. Then, change the `identity_provider` option in LmcRbacMvc config, | ||
as shown below: | ||
|
||
```php | ||
return [ | ||
'lmc_rbac' => [ | ||
'identity_provider' => 'MyCustomIdentityProvider' | ||
] | ||
]; | ||
``` | ||
|
||
The identity provider is automatically pulled from the service manager. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.