You are here

public function OpenIDConnectClientInterface::authorize in OpenID Connect / OAuth client 8

Same name and namespace in other branches
  1. 2.x src/Plugin/OpenIDConnectClientInterface.php \Drupal\openid_connect\Plugin\OpenIDConnectClientInterface::authorize()

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".

Return value

\Symfony\Component\HttpFoundation\Response A response object.

1 method overrides OpenIDConnectClientInterface::authorize()
OpenIDConnectClientBase::authorize in src/Plugin/OpenIDConnectClientBase.php
Redirects the user to the authorization endpoint.

File

src/Plugin/OpenIDConnectClientInterface.php, line 51

Class

OpenIDConnectClientInterface
Defines an interface for OpenID Connect client plugins.

Namespace

Drupal\openid_connect\Plugin

Code

public function authorize($scope = 'openid email');