API > eden > oauth2.php
View Source

class Eden_Oauth2

Oauth2 Factory class;

Public Methods

public function client($client, $secret, $redirect, $requestUrl, $accessUrl)

Returns oauth 2 client side class

Arguments

  1. string The application client ID, can get through registration
  2. string The application secret, can get through registration
  3. url Your callback url or where do you want to redirect the user after authentication
  4. url The request url, can get through registration
  5. url The access url, can get through registration

Returns Eden_Oauth2_Client

public function desktop($client, $secret, $redirect, $requestUrl, $accessUrl)

Returns oauth 2 desktop class

Arguments

  1. string The application client ID, can get through registration
  2. string The application secret, can get through registration
  3. url Your callback url or where do you want to redirect the user after authentication
  4. url The request url, can get through registration
  5. url The access url, can get through registration

Returns Eden_Oauth2_Client


© 2012 Openovate Labs. All rights reserved.