From c3afb798d6835aaf1ee3f61007ed70cf0339f244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Tue, 21 Jan 2020 15:48:08 +0100 Subject: [PATCH] Fix desktop oidc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- pkg/command/frontend.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/command/frontend.go b/pkg/command/frontend.go index 0520476d89..bf2cf1d5a8 100644 --- a/pkg/command/frontend.go +++ b/pkg/command/frontend.go @@ -70,7 +70,7 @@ func Frontend(cfg *config.Config) cli.Command { // TODO use custom scheme like "owncloud://localhost/user/callback" tracked in var desktopRedirectURIs [65535 - 1024]string for port := 0; port < len(desktopRedirectURIs); port++ { - desktopRedirectURIs[port] = fmt.Sprintf("http://localhost:%d/callback", (port + 1024)) + desktopRedirectURIs[port] = fmt.Sprintf("http://localhost:%d", (port + 1024)) } rcfg := map[string]interface{}{ @@ -156,7 +156,8 @@ func Frontend(cfg *config.Config) cli.Command { "scopes": []string{"openid", "profile", "email", "offline"}, "public": true, // force PKCS for public clients }, - "desktop": map[string]interface{}{ + // desktop + "xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69": map[string]interface{}{ "id": "xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69", "client_secret": "$2y$12$pKsCQPp8e/UOL1QDQhT3g.1J.KK8oMJACbEXIqRD0LiOxvgey.TtS", // preregister localhost ports for the desktop