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

Method ToConsentVerifier

flow/flow.go:543–548  ·  view source on GitHub ↗

ToConsentVerifier converts the flow into a consent verifier.

(ctx context.Context, cipherProvider CipherProvider)

Source from the content-addressed store, hash-verified

541
542// ToConsentVerifier converts the flow into a consent verifier.
543func (f Flow) ToConsentVerifier(ctx context.Context, cipherProvider CipherProvider) (verifier string, err error) {
544 if f.Client != nil {
545 f.ClientID = f.Client.GetID()
546 }
547 return Encode(ctx, cipherProvider.FlowCipher(), f, AsConsentVerifier)
548}
549
550func (f Flow) ToListConsentSessionResponse() *OAuth2ConsentSession {
551 s := &OAuth2ConsentSession{

Callers 4

TestEncodingFunction · 0.95

Calls 3

EncodeFunction · 0.70
GetIDMethod · 0.65
FlowCipherMethod · 0.65

Tested by 2

TestEncodingFunction · 0.76