Interface Yiisoft\Yii\AuthClient\AuthClientInterface
ClientInterface declares basic interface all Auth clients should follow.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| buildAuthUrl() | Yiisoft\ |
|
| getClientId() | The Client id is publically visible in button urls The Client secret must not be made available publically => exclude from interface | Yiisoft\ |
| getName() | Yiisoft\ |
|
| getTitle() | Yiisoft\ |
|
| getUserAttributes() | Yiisoft\ |
|
| getViewOptions() | Yiisoft\ |
Method Details
| public abstract string buildAuthUrl ( \ | ||
| $incomingRequest | \ |
|
| $params | array | |
public function buildAuthUrl(ServerRequestInterface $incomingRequest, array $params): string;
The Client id is publically visible in button urls The Client secret must not be made available publically => exclude from interface
| public abstract string getClientId ( ) |
public function getClientId(): string;
| public abstract string getTitle ( ) | ||
| return | string |
Service title. |
|---|---|---|
public function getTitle(): string;
| public abstract array getUserAttributes ( ) | ||
| return | array |
Authenticated user's attributes. |
|---|---|---|
public function getUserAttributes(): array;
| public abstract array getViewOptions ( ) | ||
| return | array |
View options in format: optionName => optionValue |
|---|---|---|
public function getViewOptions(): array;
User Contributed Notes
Leave a comment
Join the conversation to share a note.