class IndexController

Properties

static protected Client|Client|Client $oauth
static protected string $git_type
protected bool $state enable state.

Methods

void
bootstrap($git_type)

No description

void
getLoginUrl(string $git_type)

获取登录的 URL.

void
getAccessToken(string $git_type)

服务器重定向页面.

void
getAccessTokenCommon(string|null $state)

No description

void
handleRefreshToken(int $uid, $refreshToken, $gitType)

No description

Details

at line 37
void bootstrap($git_type)

Parameters

$git_type

Return Value

void

Exceptions

Exception

at line 50
void getLoginUrl(string $git_type)

获取登录的 URL.

Parameters

string $git_type

Return Value

void

at line 83
void getAccessToken(string $git_type)

服务器重定向页面.

Parameters

string $git_type

Return Value

void

Exceptions

Exception

at line 100
void getAccessTokenCommon(string|null $state)

Parameters

string|null $state

Return Value

void

Exceptions

Exception

at line 150
void handleRefreshToken(int $uid, $refreshToken, $gitType)

Parameters

int $uid
$refreshToken
$gitType

Return Value

void

Exceptions

Exception