diff --git a/routers/auto_signin_filter.go b/routers/auto_signin_filter.go index 7c09f2e1..ea4a522b 100644 --- a/routers/auto_signin_filter.go +++ b/routers/auto_signin_filter.go @@ -67,6 +67,17 @@ func AutoSigninFilter(ctx *context.Context) { return } + accessKey := ctx.Input.Query("accessKey") + accessSecret := ctx.Input.Query("accessSecret") + if accessKey != "" && accessSecret != "" { + userId, err := getUsernameByKeys(ctx) + if err != nil { + responseError(ctx, err.Error()) + } + + setSessionUser(ctx, userId) + } + // "/page?clientId=123&clientSecret=456" userId, err := getUsernameByClientIdSecret(ctx) if err != nil {