SetUserinfoFromRequests implements the op.CanSetUserinfoFromRequest interface. In the next major release, it will be required for op.Storage. It will be called for the creation of an id_token, so we'll just pass it to the private function without any further check
(ctx context.Context, userinfo *oidc.UserInfo, token op.IDTokenRequest, scopes []string)
| 462 | // next major release, it will be required for op.Storage. |
| 463 | // It will be called for the creation of an id_token, so we'll just pass it to the private function without any further check |
| 464 | func (s *Storage) SetUserinfoFromRequest(ctx context.Context, userinfo *oidc.UserInfo, token op.IDTokenRequest, scopes []string) error { |
| 465 | return s.setUserinfo(ctx, userinfo, token.GetSubject(), token.GetClientID(), scopes) |
| 466 | } |
| 467 | |
| 468 | // SetUserinfoFromToken implements the op.Storage interface |
| 469 | // it will be called for the userinfo endpoint, so we read the token and pass the information from that to the private function |
nothing calls this directly
no test coverage detected