Skip to content

Commit b1f23e9

Browse files
authored
Merge pull request #45 from ajimoti/patch-1
Updated Readme file
2 parents 62f505a + 3de1420 commit b1f23e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ After the server has been configured it should be used as described in the [OAut
6969

7070
## UserEntity
7171
In order for this library to work properly you will need to add your IdentityProvider to the IdTokenResponse object. This will be used internally to lookup a UserEntity by it's identifier. Additionally your UserEntity must implement the ClaimSetInterface which includes a single method getClaims(). The getClaims() method should return a list of attributes as key/value pairs that can be returned if the proper scope has been defined.
72-
```
72+
```php
7373
use League\OAuth2\Server\Entities\Traits\EntityTrait;
7474
use League\OAuth2\Server\Entities\UserEntityInterface;
7575
use OpenIDConnectServer\Entities\ClaimSetInterface;
@@ -90,7 +90,7 @@ class UserEntity implements UserEntityInterface, ClaimSetInterface
9090

9191
## ClaimSets
9292
A ClaimSet is a scope that defines a list of claims.
93-
```
93+
```php
9494
// Example of the profile ClaimSet
9595
$claimSet = new ClaimSetEntity('profile', [
9696
'name',
@@ -114,7 +114,7 @@ As you can see from the above, profile lists a set of claims that can be extract
114114

115115
### Adding Custom ClaimSets
116116
At some point you will likely want to include your own group of custom claims. To do this you will need to create a ClaimSetEntity, give it a scope (the value you will include in the scope parameter of your OAuth2 request) and the list of claims it supports.
117-
```
117+
```php
118118
$extractor = new ClaimExtractor();
119119
// Create your custom scope
120120
$claimSet = new ClaimSetEntity('company', [

0 commit comments

Comments
 (0)