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

Method ToLoginVerifier

flow/flow.go:527–532  ·  view source on GitHub ↗

ToLoginVerifier converts the flow into a login verifier.

(ctx context.Context, cipherProvider CipherProvider)

Source from the content-addressed store, hash-verified

525
526// ToLoginVerifier converts the flow into a login verifier.
527func (f Flow) ToLoginVerifier(ctx context.Context, cipherProvider CipherProvider) (verifier string, err error) {
528 if f.Client != nil {
529 f.ClientID = f.Client.GetID()
530 }
531 return Encode(ctx, cipherProvider.FlowCipher(), f, AsLoginVerifier)
532}
533
534// ToConsentChallenge converts the flow into a consent challenge.
535func (f Flow) ToConsentChallenge(ctx context.Context, cipherProvider CipherProvider) (challenge string, err error) {

Calls 3

EncodeFunction · 0.70
GetIDMethod · 0.65
FlowCipherMethod · 0.65

Tested by 1