Use proper oauth state (#3847)

This commit is contained in:
Anbraten
2024-06-27 16:52:09 +02:00
committed by GitHub
parent 92cd0d04a3
commit 2bda19024e
12 changed files with 164 additions and 64 deletions

View File

@@ -27,11 +27,12 @@ type SecretFunc func(*Token) (string, error)
type Type string
const (
UserToken Type = "user" // user token (exp cli)
SessToken Type = "sess" // session token (ui token requires csrf check)
HookToken Type = "hook" // repo hook token
CsrfToken Type = "csrf"
AgentToken Type = "agent"
UserToken Type = "user" // user token (exp cli)
SessToken Type = "sess" // session token (ui token requires csrf check)
HookToken Type = "hook" // repo hook token
CsrfToken Type = "csrf"
AgentToken Type = "agent"
OAuthStateToken Type = "oauth-state"
)
// SignerAlgo id default algorithm used to sign JWT tokens.