mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 15:22:24 -05:00
Auth flow fixes (#82)
* preliminary fixes to broken auth flow * fix some auth/cookie weirdness * fmt
This commit is contained in:
parent
c71e55ecc4
commit
5460271bb5
5 changed files with 79 additions and 49 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue