重构认证授权逻辑,集中到 auth 包中
This commit is contained in:
@@ -16,3 +16,43 @@ const (
|
||||
GrantPasswordPhone = PasswordGrantType("phone_code") // 手机号模式
|
||||
GrantPasswordEmail = PasswordGrantType("email_code") // 邮箱模式
|
||||
)
|
||||
|
||||
func Token(grant GrantType) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func authAuthorizationCode() {
|
||||
|
||||
}
|
||||
|
||||
func authClientCredential() {
|
||||
|
||||
}
|
||||
|
||||
func authRefreshToken() {
|
||||
|
||||
}
|
||||
|
||||
func authPassword() {
|
||||
|
||||
}
|
||||
|
||||
func authPasswordSecret() {
|
||||
|
||||
}
|
||||
|
||||
func authPasswordPhone() {
|
||||
|
||||
}
|
||||
|
||||
func authPasswordEmail() {
|
||||
|
||||
}
|
||||
|
||||
func Revoke() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func Introspect() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user