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

Method ToDeviceChallenge

flow/flow.go:509–511  ·  view source on GitHub ↗

ToDeviceChallenge converts the flow into a device challenge.

(ctx context.Context, cipherProvider CipherProvider)

Source from the content-addressed store, hash-verified

507
508// ToDeviceChallenge converts the flow into a device challenge.
509func (f *Flow) ToDeviceChallenge(ctx context.Context, cipherProvider CipherProvider) (string, error) {
510 return Encode(ctx, cipherProvider.FlowCipher(), f, AsDeviceChallenge)
511}
512
513// ToDeviceVerifier converts the flow into a device verifier.
514func (f *Flow) ToDeviceVerifier(ctx context.Context, cipherProvider CipherProvider) (string, error) {

Calls 2

EncodeFunction · 0.70
FlowCipherMethod · 0.65