AuthRequestByCode returns the AuthRequest previously created from Storage corresponding to the auth code or an error
(ctx context.Context, storage Storage, code string)
| 123 | |
| 124 | // AuthRequestByCode returns the AuthRequest previously created from Storage corresponding to the auth code or an error |
| 125 | func AuthRequestByCode(ctx context.Context, storage Storage, code string) (AuthRequest, error) { |
| 126 | ctx, span := Tracer.Start(ctx, "AuthRequestByCode") |
| 127 | defer span.End() |
| 128 | |
| 129 | authReq, err := storage.AuthRequestByCode(ctx, code) |
| 130 | if err != nil { |
| 131 | return nil, oidc.ErrInvalidGrant().WithDescription("invalid code").WithParent(err) |
| 132 | } |
| 133 | return authReq, nil |
| 134 | } |
no test coverage detected
searching dependent graphs…