Documentation ¶
Index ¶
Constants ¶
View Source
const CodeVerifierLength = 64 //43~128 https://datatracker.ietf.org/doc/html/rfc7636#section-4.1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeChallengeMethod ¶
type CodeChallengeMethod string
const ( CodeChallengePlain CodeChallengeMethod = "PLAIN" CodeChallengeS256 = "S256" )
type CodeVerifier ¶
type CodeVerifier struct { Verifier string ChallengeMethod CodeChallengeMethod Challenge string }
type ModuleInstance ¶
type ModuleInstance struct {
// contains filtered or unexported fields
}
ModuleInstance represents an instance of the OAuth PKCE module.
func (*ModuleInstance) Exports ¶
func (mi *ModuleInstance) Exports() k6modules.Exports
Exports returns the exports of the OAuth PKCE module so that it can be used in test scripts.
type OAuthPkceModule ¶
type OAuthPkceModule struct {
// contains filtered or unexported fields
}
OAuthPkceModule is the entrypoint into the OAuth PKCE module.
func (*OAuthPkceModule) Create ¶
func (m *OAuthPkceModule) Create(method CodeChallengeMethod) *CodeVerifier
type RootModule ¶
type RootModule struct{}
RootModule is the global module instance that will create module instances for each VU.
func (*RootModule) NewModuleInstance ¶
func (*RootModule) NewModuleInstance(vu k6modules.VU) k6modules.Instance
NewModuleInstance implements the k6modules.Module interface to return a new instance for each VU.
Click to show internal directories.
Click to hide internal directories.