ToConsentVerifier converts the flow into a consent verifier.
(ctx context.Context, cipherProvider CipherProvider)
| 541 | |
| 542 | // ToConsentVerifier converts the flow into a consent verifier. |
| 543 | func (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 | |
| 550 | func (f Flow) ToListConsentSessionResponse() *OAuth2ConsentSession { |
| 551 | s := &OAuth2ConsentSession{ |