OAuth2
- Full name:
\OAuth2
- This class is an Abstract class
Properties
access_token_lifetime
auth_code_lifetime
refresh_token_lifetime
Methods
auth_client_credentials
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$client_id |
mixed | |
$client_secret |
mixed |
get_redirect_uri
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$client_id |
mixed |
get_access_token
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$token_id |
mixed |
store_access_token
protected store_access_token(mixed $token_id, mixed $client_id, mixed $expires, mixed $scope = null): mixed
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$token_id |
mixed | |
$client_id |
mixed | |
$expires |
mixed | |
$scope |
mixed |
get_supported_grant_types
get_supported_auth_response_types
get_supported_scopes
authorize_client_response_type
Parameters:
Parameter | Type | Description |
---|---|---|
$client_id |
mixed | |
$response_type |
mixed |
authorize_client
Parameters:
Parameter | Type | Description |
---|---|---|
$client_id |
mixed | |
$grant_type |
mixed |
get_stored_auth_code
Parameters:
Parameter | Type | Description |
---|---|---|
$code |
mixed |
store_auth_code
protected store_auth_code(mixed $code, mixed $client_id, mixed $redirect_uri, mixed $expires, mixed $scope): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$code |
mixed | |
$client_id |
mixed | |
$redirect_uri |
mixed | |
$expires |
mixed | |
$scope |
mixed |
check_user_credentials
Parameters:
Parameter | Type | Description |
---|---|---|
$client_id |
mixed | |
$username |
mixed | |
$password |
mixed |
check_assertion
Parameters:
Parameter | Type | Description |
---|---|---|
$client_id |
mixed | |
$assertion_type |
mixed | |
$assertion |
mixed |
get_refresh_token
Parameters:
Parameter | Type | Description |
---|---|---|
$refresh_token |
mixed |
store_refresh_token
protected store_refresh_token(mixed $token, mixed $client_id, mixed $expires, mixed $scope = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$token |
mixed | |
$client_id |
mixed | |
$expires |
mixed | |
$scope |
mixed |
check_none_access
Parameters:
Parameter | Type | Description |
---|---|---|
$client_id |
mixed |
get_default_authentication_realm
__construct
public __construct(mixed $access_token_lifetime = 3600, mixed $auth_code_lifetime = 30, mixed $refresh_token_lifetime = 1209600): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$access_token_lifetime |
mixed | |
$auth_code_lifetime |
mixed | |
$refresh_token_lifetime |
mixed |
verify_access_token
public verify_access_token(mixed $scope = null, mixed $exit_not_present = true, mixed $exit_invalid = true, mixed $exit_expired = true, mixed $exit_scope = true, mixed $realm = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$scope |
mixed | |
$exit_not_present |
mixed | |
$exit_invalid |
mixed | |
$exit_expired |
mixed | |
$exit_scope |
mixed | |
$realm |
mixed |
check_scope
Parameters:
Parameter | Type | Description |
---|---|---|
$required_scope |
mixed | |
$available_scope |
mixed |
send_401_unauthorized
Parameters:
Parameter | Type | Description |
---|---|---|
$realm |
mixed | |
$scope |
mixed | |
$error |
mixed |
get_access_token_param
grant_access_token
get_client_credentials
get_authorize_params
finish_client_authorization
public finish_client_authorization(mixed $is_authorized, mixed $type, mixed $client_id, mixed $redirect_uri, mixed $state, mixed $scope = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$is_authorized |
mixed | |
$type |
mixed | |
$client_id |
mixed | |
$redirect_uri |
mixed | |
$state |
mixed | |
$scope |
mixed |
do_redirect_uri_callback
Parameters:
Parameter | Type | Description |
---|---|---|
$redirect_uri |
mixed | |
$result |
mixed |
build_uri
Parameters:
Parameter | Type | Description |
---|---|---|
$uri |
mixed | |
$data |
mixed |
create_access_token
Parameters:
Parameter | Type | Description |
---|---|---|
$client_id |
mixed | |
$scope |
mixed |
create_auth_code
Parameters:
Parameter | Type | Description |
---|---|---|
$client_id |
mixed | |
$redirect_uri |
mixed | |
$scope |
mixed |
gen_access_token
gen_auth_code
get_authorization_header
send_json_headers
error
Parameters:
Parameter | Type | Description |
---|---|---|
$code |
mixed | |
$message |
mixed |
callback_error
public callback_error(mixed $redirect_uri, mixed $error, mixed $state, mixed $message = null, mixed $error_uri = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$redirect_uri |
mixed | |
$error |
mixed | |
$state |
mixed | |
$message |
mixed | |
$error_uri |
mixed |
Automatically generated on 2025-03-18