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

Method ToConsentChallenge

flow/flow.go:535–540  ·  view source on GitHub ↗

ToConsentChallenge converts the flow into a consent challenge.

(ctx context.Context, cipherProvider CipherProvider)

Source from the content-addressed store, hash-verified

533
534// ToConsentChallenge converts the flow into a consent challenge.
535func (f Flow) ToConsentChallenge(ctx context.Context, cipherProvider CipherProvider) (challenge string, err error) {
536 if f.Client != nil {
537 f.ClientID = f.Client.GetID()
538 }
539 return Encode(ctx, cipherProvider.FlowCipher(), f, AsConsentChallenge)
540}
541
542// ToConsentVerifier converts the flow into a consent verifier.
543func (f Flow) ToConsentVerifier(ctx context.Context, cipherProvider CipherProvider) (verifier string, err error) {

Calls 3

EncodeFunction · 0.70
GetIDMethod · 0.65
FlowCipherMethod · 0.65