Skip to content

Commit 60fb913

Browse files
committed
Update - add function searchUserByName
1 parent f2f15c1 commit 60fb913

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ The facade **\Oauth2** provides all helpers needed to get and post data from the
150150
@return array With the data of user owner of document given
151151
```
152152

153+
```php
154+
@method \Oauth2::searchUserByName(string $name): array
155+
@api POST '/api/{version}/user/name'
156+
157+
@return array With the data of user owner of document given
158+
```
159+
153160
```php
154161
@method \Oauth2::getUserSystems(): array
155162
@api GET '/api/{version}/user/systems'

Services/Api.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ public static function getUserByCpf(string $cpf)
106106
return self::getResponse('user/cpf', ['cpf' => $cpf]);
107107
}
108108

109+
/**
110+
* @api POST '/api/{version}/user/name'
111+
*
112+
* @param string $name
113+
*
114+
* @return array With the data of user owner of document given
115+
*/
116+
public static function searchUserByName(string $name): array
117+
{
118+
return self::getResponse('user/name', ['name' => $name]);
119+
}
120+
109121
/**
110122
* @api GET '/api/{version}/user/systems'
111123
*

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "univicosa/laravel-openid-client",
33
"license": "MIT",
44
"description": "OpenId client for the Univiçosa authenticated projects.",
5-
"version": "1.0.10",
5+
"version": "1.0.11",
66
"authors": [
77
{
88
"name": "Felipe da Silva Pinheiro",

0 commit comments

Comments
 (0)