MCPcopy
hub / github.com/ory/hydra / RequestType

Method RequestType

flow/encoding.go:34–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32)
33
34func (p purpose) RequestType() string {
35 switch p {
36 case loginChallenge, loginVerifier:
37 return "login"
38 case deviceChallenge, deviceVerifier:
39 return "device"
40 case consentChallenge, consentVerifier:
41 return "consent"
42 default:
43 return "unknown"
44 }
45}
46
47func withPurpose(purpose purpose) CodecOption { return func(ad *data) { ad.Purpose = purpose } }
48

Callers 2

decodeFlowFunction · 0.80
decodeVerifierFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected