1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/fnet-oauth2

Клонировать/Скачать
const.go 753 Байты
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
lyric Отправлено 06.07.2016 11:33 6491a6a
package oauth2
// ResponseType 定义授权类型
type ResponseType string
const (
// Code 授权码类型
Code ResponseType = "code"
// Token 令牌类型
Token ResponseType = "token"
)
func (rt ResponseType) String() string {
return string(rt)
}
// GrantType 定义授权模式
type GrantType string
const (
// AuthorizationCodeCredentials 授权码模式
AuthorizationCodeCredentials GrantType = "authorization_code"
// PasswordCredentials 密码模式
PasswordCredentials GrantType = "password"
// ClientCredentials 客户端模式
ClientCredentials GrantType = "clientcredentials"
// RefreshCredentials 更新令牌模式
RefreshCredentials GrantType = "refreshtoken"
)
func (gt GrantType) String() string {
return string(gt)
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/fnet-oauth2.git
git@api.gitlife.ru:oschina-mirror/fnet-oauth2.git
oschina-mirror
fnet-oauth2
fnet-oauth2
master