diff options
author | 2021-07-08 11:32:31 +0200 | |
---|---|---|
committer | 2021-07-08 11:32:31 +0200 | |
commit | 5460271bb51290c2b0acf2f00001096e2b12c3e2 (patch) | |
tree | 6c811b48205502737379a26b9dc15383cf4d4b25 /internal/api/client/auth/auth.go | |
parent | clean up some weirdness in the router (#80) (diff) | |
download | gotosocial-5460271bb51290c2b0acf2f00001096e2b12c3e2.tar.xz |
Auth flow fixes (#82)
* preliminary fixes to broken auth flow
* fix some auth/cookie weirdness
* fmt
Diffstat (limited to 'internal/api/client/auth/auth.go')
-rw-r--r-- | internal/api/client/auth/auth.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/api/client/auth/auth.go b/internal/api/client/auth/auth.go index 793c19f4e..7cddc3e74 100644 --- a/internal/api/client/auth/auth.go +++ b/internal/api/client/auth/auth.go @@ -36,8 +36,26 @@ const ( OauthTokenPath = "/oauth/token" // OauthAuthorizePath is the API path for authorization requests (eg., authorize this app to act on my behalf as a user) OauthAuthorizePath = "/oauth/authorize" + + sessionUserID = "userid" + sessionClientID = "client_id" + sessionRedirectURI = "redirect_uri" + sessionForceLogin = "force_login" + sessionResponseType = "response_type" + sessionCode = "code" + sessionScope = "scope" ) +var sessionKeys []string = []string{ + sessionUserID, + sessionClientID, + sessionRedirectURI, + sessionForceLogin, + sessionResponseType, + sessionCode, + sessionScope, +} + // Module implements the ClientAPIModule interface for type Module struct { config *config.Config |