# Class Web.Auth.OAuth.Authentication

Inheritance graph

Description

  The purpose of this class is to streamline OAuth1 with OAuth2. This class will not do much on it's own, since its purpose is to be inherited by some other class implementing a specific authorization service.

Constant ACCESS_TOKEN_URL

  `constant int Web.Auth.OAuth.Authentication.ACCESS_TOKEN_URL`

Description

  The endpoint to send request for an access token.

Constant REQUEST_TOKEN_URL

  `constant int Web.Auth.OAuth.Authentication.REQUEST_TOKEN_URL`

Description

  The endpoint to send request for a request token.

Constant USER_AUTH_URL

  `constant int Web.Auth.OAuth.Authentication.USER_AUTH_URL`

Description

  The enpoint to redirect to when authorize an application.

Inherit oauth

  inherit .Client : oauth

Inherit oauth2

  inherit Web.Auth.OAuth2.Client : oauth2

Method create

  `Web.Auth.OAuth.Authentication Web.Auth.OAuth.Authentication(string client_id, string client_secret, void|string redir, void|string|array(string)|multiset(string) scope)`

Description

  Creates an OAuth object.

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 get_request_token().

Parameter `scope`

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