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

Method ToLoginChallenge

flow/flow.go:519–524  ·  view source on GitHub ↗

ToLoginChallenge converts the flow into a login challenge.

(ctx context.Context, cipherProvider CipherProvider)

Source from the content-addressed store, hash-verified

517
518// ToLoginChallenge converts the flow into a login challenge.
519func (f Flow) ToLoginChallenge(ctx context.Context, cipherProvider CipherProvider) (challenge string, err error) {
520 if f.Client != nil {
521 f.ClientID = f.Client.GetID()
522 }
523 return Encode(ctx, cipherProvider.FlowCipher(), f, AsLoginChallenge)
524}
525
526// ToLoginVerifier converts the flow into a login verifier.
527func (f Flow) ToLoginVerifier(ctx context.Context, cipherProvider CipherProvider) (verifier string, err error) {

Calls 3

EncodeFunction · 0.70
GetIDMethod · 0.65
FlowCipherMethod · 0.65