feat: 新增 Gitee OAuth 服务,用于处理 Gitee 授权登录流程。
This commit is contained in:
@@ -69,7 +69,7 @@ func (s *GiteeOAuthService) GetAuthorizationURL(state string) string {
|
|||||||
params.Set("client_id", s.cfg.GiteeClientID)
|
params.Set("client_id", s.cfg.GiteeClientID)
|
||||||
params.Set("redirect_uri", s.cfg.GiteeRedirectURL)
|
params.Set("redirect_uri", s.cfg.GiteeRedirectURL)
|
||||||
params.Set("response_type", "code")
|
params.Set("response_type", "code")
|
||||||
params.Set("scope", "user_info emails")
|
params.Set("scope", "user_info")
|
||||||
if state != "" {
|
if state != "" {
|
||||||
params.Set("state", state)
|
params.Set("state", state)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user