Method Web.Auth.OAuth2.`()()


Method `()

protected Base `()(string client_id, string client_secret, void|string redirect_uri, void|string|array(string)|multiset(string) scope)

Description

Instantiate a generic OAuth2 Base class.

Parameter client_id

The application ID.

Parameter client_secret

The application secret.

Parameter redirect_uri

Where the authorization page should redirect back to. This must be a fully qualified domain name. This can be set/overridden in Base()->get_auth_uri() and/or Base()->set_redirect_uri().

Parameter scope

Extended permissions to use for this authentication. This can be set/overridden in Base()->get_auth_uri().