ParseAuth lets plugin auth providers parse a credential payload.
(ctx context.Context, req pluginapi.AuthParseRequest)
| 94 | |
| 95 | // ParseAuth lets plugin auth providers parse a credential payload. |
| 96 | func (h *Host) ParseAuth(ctx context.Context, req pluginapi.AuthParseRequest) (*coreauth.Auth, bool, error) { |
| 97 | if h == nil || h.inner == nil { |
| 98 | return nil, false, nil |
| 99 | } |
| 100 | return h.inner.ParseAuth(ctx, req) |
| 101 | } |
| 102 | |
| 103 | // ParseAuths lets plugin auth providers expand one credential payload into multiple auth records. |
| 104 | func (h *Host) ParseAuths(ctx context.Context, req pluginapi.AuthParseRequest) ([]*coreauth.Auth, bool, error) { |