{"modulePath":"github.com/chainloop-dev/chainloop","version":"v1.138.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package oauth\n\n## Constants\n\n```go\nconst (\n\t// URL query params used in the OAuth flow\n\t// Shared in a parent module so both clients and servers can use them\n\tQueryParamCallback        = \"callback\"\n\tQueryParamLongLived       = \"long-lived\"\n\tQueryParamAuth0Connection = \"connection\"\n\t// PKCE-style challenge that opts a login into the handoff code exchange\n\tQueryParamCodeChallenge       = \"code_challenge\"\n\tQueryParamCodeChallengeMethod = \"code_challenge_method\"\n\t// Callback parameter that carries the handoff code\n\tQueryParamHandoff = \"handoff\"\n\t// Callback parameter that carries the session token in the legacy flow\n\tQueryParamLegacyToken = \"t\"\n\t// Post-login redirect inside a callback URL\n\tQueryParamReturnTo = \"returnTo\"\n\n\tCodeChallengeMethodS256 = \"S256\"\n)\n```\n\n## Functions\n\n```go\nfunc ValidS256Challenge(challenge string) bool\n```\nValidS256Challenge tells if the value has the shape of a S256 challenge\n\n```go\nfunc VerifyS256(verifier, challenge string) bool\n```\nVerifyS256 tells, in constant time, if the verifier matches the S256 challenge\n\n","path":"github.com/chainloop-dev/chainloop/internal/oauth","name":"oauth","synopsis":"","isRedistributable":true}
