public function OpenIDConnectClientInterface::authorize in OpenID Connect / OAuth client 7
Redirects the user to the authorization endpoint.
The authorization endpoint authenticates the user and returns them to the redirect_uri specified previously with an authorization code that can be exchanged for an access token.
Parameters
string $scope: Name of scope(s) that with user consent will provide access to otherwise restricted user data. Defaults to "openid email".
1 method overrides OpenIDConnectClientInterface::authorize()
- OpenIDConnectClientBase::authorize in includes/
OpenIDConnectClientBase.class.php - Redirects the user to the authorization endpoint.
File
- includes/
OpenIDConnectClientInterface.class.php, line 90 - Interface to implement OpenID Connect clients.
Class
- OpenIDConnectClientInterface
- Interface of the OpenID Connect client.
Code
public function authorize($scope = 'openid email');