From d35d8a73079f5ae4c0d8a51f51feba4bc611fd33 Mon Sep 17 00:00:00 2001 From: Steven Kang Date: Thu, 23 Jan 2025 09:03:51 +1300 Subject: [PATCH] feat(oauth): fix mapping (#330) --- api/oauth/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/oauth/oauth.go b/api/oauth/oauth.go index ed3700b1e..2c78e15a4 100644 --- a/api/oauth/oauth.go +++ b/api/oauth/oauth.go @@ -50,7 +50,7 @@ func (*Service) Authenticate(code string, configuration *portainer.OAuthSettings return "", err } - maps.Copy(idToken, resource) + maps.Copy(resource, idToken) username, err := GetUsername(resource, configuration.UserIdentifier) if err != nil {