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, } }