From a385e4f267028a45f9035436f7ff9e062d04de39 Mon Sep 17 00:00:00 2001 From: Laurent Drogou Date: Fri, 29 Jan 2021 12:45:07 +0100 Subject: [PATCH] correction typo redirect uri --- .gitignore | 3 ++- routes.auth.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index baa6d28..cc9af6e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store goauth20 -oauth.db \ No newline at end of file +oauth.db +goauth.exe \ No newline at end of file diff --git a/routes.auth.go b/routes.auth.go index d14eb52..9ac0ed3 100644 --- a/routes.auth.go +++ b/routes.auth.go @@ -306,7 +306,7 @@ func constJSONToken(code, state string, param *model.Param) JSONToken { ClientID: param.ClientID, ClientSecret: param.ClientSecret, GrantType: param.GrantType, - RedirectURI: "http://localhost:8080/oauth/redirect?state=" + state, + RedirectURI: "http://localhost:8080/oauth/redirect%3Fstate=" + state, Code: code, } }