Compare commits
No commits in common. "18524598d47df447682df8111e70419a4c641b3f" and "7359d9cd576664f42caab04af0b7ebfa3a79c7d0" have entirely different histories.
18524598d4
...
7359d9cd57
@ -214,11 +214,8 @@ func OAuth2Callback(ctx *gin.Context) {
|
||||
service.Error(ctx, errors.New(e.GetMsg(e.InvalidParams)))
|
||||
return
|
||||
}
|
||||
zap.L().Info("OAuth2Callback", zap.Any("req", req), zap.Any("code", code), zap.Any("state", state))
|
||||
_, err := service.CastProvider.OAuthCodeToToken(ctx, req)
|
||||
if err != nil {
|
||||
zap.L().Info("OAuth2Callback error", zap.Error(err))
|
||||
|
||||
ctx.Redirect(http.StatusFound, fmt.Sprintf("%s?%s", config.AppConfig.System.AuthRedirectUrl, "status=1"))
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user