From 1bae0b95d4e3a279d990e496d668152c5fa24040 Mon Sep 17 00:00:00 2001 From: Peter Marton Date: Wed, 13 Dec 2023 09:19:42 +0100 Subject: [PATCH 1/7] feat(api): portal token list --- api/api.gen.go | 152 ++++++++++++------- api/client/go/client.gen.go | 253 ++++++++++++++++++++++++------- api/openapi.yaml | 26 ++++ internal/server/router/portal.go | 5 + internal/server/server_test.go | 10 ++ 5 files changed, 340 insertions(+), 106 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index 43695bc27..5c30ac557 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -170,6 +170,12 @@ type QueryPortalMeterParams struct { GroupBy *QueryGroupBy `form:"groupBy,omitempty" json:"groupBy,omitempty"` } +// ListPortalTokensParams defines parameters for ListPortalTokens. +type ListPortalTokensParams struct { + // Limit Number of events to return. + Limit *int `form:"limit,omitempty" json:"limit,omitempty"` +} + // InvalidatePortalTokensJSONBody defines parameters for InvalidatePortalTokens. type InvalidatePortalTokensJSONBody struct { Subject *string `json:"subject,omitempty"` @@ -220,6 +226,9 @@ type ServerInterface interface { // (GET /api/v1/portal/meters/{meterSlug}/query) QueryPortalMeter(w http.ResponseWriter, r *http.Request, meterSlug string, params QueryPortalMeterParams) + // (GET /api/v1/portal/tokens) + ListPortalTokens(w http.ResponseWriter, r *http.Request, params ListPortalTokensParams) + // (POST /api/v1/portal/tokens) CreatePortalToken(w http.ResponseWriter, r *http.Request) @@ -276,6 +285,11 @@ func (_ Unimplemented) QueryPortalMeter(w http.ResponseWriter, r *http.Request, w.WriteHeader(http.StatusNotImplemented) } +// (GET /api/v1/portal/tokens) +func (_ Unimplemented) ListPortalTokens(w http.ResponseWriter, r *http.Request, params ListPortalTokensParams) { + w.WriteHeader(http.StatusNotImplemented) +} + // (POST /api/v1/portal/tokens) func (_ Unimplemented) CreatePortalToken(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotImplemented) @@ -610,6 +624,34 @@ func (siw *ServerInterfaceWrapper) QueryPortalMeter(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r.WithContext(ctx)) } +// ListPortalTokens operation middleware +func (siw *ServerInterfaceWrapper) ListPortalTokens(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() + + var err error + + // Parameter object where we will unmarshal all parameters from the context + var params ListPortalTokensParams + + // ------------- Optional query parameter "limit" ------------- + + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + if err != nil { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + return + } + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.ListPortalTokens(w, r, params) + })) + + for i := len(siw.HandlerMiddlewares) - 1; i >= 0; i-- { + handler = siw.HandlerMiddlewares[i](handler) + } + + handler.ServeHTTP(w, r.WithContext(ctx)) +} + // CreatePortalToken operation middleware func (siw *ServerInterfaceWrapper) CreatePortalToken(w http.ResponseWriter, r *http.Request) { ctx := r.Context() @@ -780,6 +822,9 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl r.Group(func(r chi.Router) { r.Get(options.BaseURL+"/api/v1/portal/meters/{meterSlug}/query", wrapper.QueryPortalMeter) }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/api/v1/portal/tokens", wrapper.ListPortalTokens) + }) r.Group(func(r chi.Router) { r.Post(options.BaseURL+"/api/v1/portal/tokens", wrapper.CreatePortalToken) }) @@ -793,59 +838,60 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+xbe3MTtxb/Khpd/oDb9TMJFP9zx4QALiShiVMKSW4q7x7bKrvSImnjmEy++x099uVd", - "xxtIhnZuO0zHtqSj8z5HPynX2OdRzBkwJfHgGsdEkAgUCPPNfBoFh+I4TGb6hwCkL2isKGd4gIcoYfRL", - "AogGwBSdUhBoygVSc0BmaRt7mOqZM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/f", - "UaksZmw2yt+VnNa3wPmUTv6a48ZrNnnMzdQVlME0jhl4abAFe5neXnPBG9KIlh8kZNmtp/NZlt161dx2", - "c75yi9vvdm+5WKteqDU6xZRht+q7iArU4mD7lDO9ZNsyVrdNJkBn/R202cLddm+isv7KUXOqiO5HTx2P", - "+Fx3GFzW+J2V2pmx4ml2NPM1l3xf8GB5i/4LYO8dLzf3MkB4Db3WhCh//tM3WvgWy5YfSt1U/G27qrnD", - "t39ti994We7J353V5h6dT5CbU5dr9tOhhw9Ci/I0CD7LUyn47lmRTur1obMrgCh3CK/ozQ6moFWzwLlb", - "sDhVNfHe3kNsWqeM4H5CYsdyfDuF25+pPKA/VAKrc116d3ljXSUEVXsFqH93yM1kiRxQWnYeOyl1nrtV", - "+PIT0JrSWZPKDnh6+rP2226k/dpHS39563n1OfA1qLJRqqnwNagHMkn34eMzrVbfZ9ofFlK2F11bwQz8", - "tyYTm7F7MZz3cO11k6lFBPtOS7JnlU2Xpc+Lm85P32A/vGsXLy2MJ8GV6vjy0tx9Z8iBPSVfSEWE8twX", - "YIHn0EvP3l56+ozmGWjrjBXfg3QH5p95D+JlA/2VgexRS8+bgfLsOzSv178PWgsuwsDrd7+LVr/I13bp", - "7FXzTPZv0dzeIWE4WzfpelE2d233e5zP+KG5v/Er/r+zRS1OVDZsfRWoyfT2zmZNvl/3JzMb/1ymgi7+", - "v5SCf1L7P6m9PhFsN2nzb3uvf3/JJMWaTYyXUObTc/PEziUbmxtqk425wnQotazJLfZ8W7wQfphTfXGH", - "m+rfr9xn1K1s9TcpGBtt2KHMvWuE9eYcZXMKWpDfYdPy/e36m/fqC7k6Izc4o/9lzZL/WPPngzGnFjPP", - "HjtTAzFTNssxaFeZHZJZvX2opZPhl261aywarjY3kVaEjIIT6eb85n8BAAD//yo7YSjMOwAA", + "H4sIAAAAAAAC/+xb+3MTt/b/VzT68gN8u34mgeJf7pgQwIUkNHFKIclN5d1jW2VXWiRtHJPJ/35Hj315", + "1/GGJkO5tx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f7aZrtNIks", + "ifDgtKRYo9DzYqCqjHo4ouwdsJlmoedhloQhmei5VjiVHK2pKobEUuJLa0Qb9u00pOZEWWYsAxIprinO", + "0m0i6N3poMHG840aS+rDO36vOyUBtHr+c2htB0/91s/9Zzstf6fvbz19ttULtvwKLZWzJU+EDxvPNxq/", + "Ujq7LebUnyPCnGnNSRwDg7JtYV2+UR9kx31odVek1BIwBQHMhwY0xuBfgpDU+nRNhraDqbUV/UuW/MvS", + "nglU509ZJrzX7jYgKK8Uy8S8NN8mqdG4csaRZY909UEq0NJYLHiQ+CDQ4+yKEuji1yrpSZlSP5GKRyAu", + "aLCZYlMBVmVHI5CKRLEmYzEHSxr3/UQY1eTKrfNaXaOWSep3+1utbq/V7Y27vYH51+52e5+Kui8WpHf0", + "k/p4U5Z5GnWsQAWERIduxS1ngs4oI4qyWYHLMg8kphfC1RF1JXN++zvFRvLOg8pm6lbmpnK+Gko9fNWa", + "8Zb70fq3TSaFkRaNYi6UveqayDyjap5M2j6POr42c7NQdmTwuTXjnct+x/xgKC3ehDmDwykenK4K7+Td", + "6CV6fMKoJpyE4RKd2DvyO7iiPp8JEs+pbwaOuVBaPSgLDeKJzRgKhN7r36fd1vPhi92Xe69ev/nl7f7B", + "+1+Pjse/ffj946fz6/7Tm0dVeXrXOCJXqQ083Vo1ieLmpPW123p+/tPjfw0usi9P/r9m1/Ma2xmxGUgF", + "QbN8Xc68kK65rYawG994+JKENDDhZs8UDINrLIAEhyxcrrHsFauyx53X5N59UGA2LNOX3sFcfLyNSrPD", + "sDB/teCpgiaF72m0ytCS3G32l8jsjV4WljfwacPsuNax8/LFOLXi+WXzDi7rZdjAWqXXXN9XamYSQWCK", + "s/dEzRFcxQKk9nOd/xFcKUF8ZSRTxiskmgoeFQK8Lh1WirAI1JwHeIAftd3HrAp71DYf6qqwupKhEb6V", + "S63be/1059OznZ3hqw/Dt2/2ev2Dj93dX5+/emMwrlst1sPy2yG2nIRoeWF+1ang/sOAccUEnKZrwKwa", + "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x9LN", + "+c1/AgAA//94eZOatj0AAA==", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/client/go/client.gen.go b/api/client/go/client.gen.go index f8e0fddac..15d3204cb 100644 --- a/api/client/go/client.gen.go +++ b/api/client/go/client.gen.go @@ -171,6 +171,12 @@ type QueryPortalMeterParams struct { GroupBy *QueryGroupBy `form:"groupBy,omitempty" json:"groupBy,omitempty"` } +// ListPortalTokensParams defines parameters for ListPortalTokens. +type ListPortalTokensParams struct { + // Limit Number of events to return. + Limit *int `form:"limit,omitempty" json:"limit,omitempty"` +} + // InvalidatePortalTokensJSONBody defines parameters for InvalidatePortalTokens. type InvalidatePortalTokensJSONBody struct { Subject *string `json:"subject,omitempty"` @@ -297,6 +303,9 @@ type ClientInterface interface { // QueryPortalMeter request QueryPortalMeter(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListPortalTokens request + ListPortalTokens(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // CreatePortalTokenWithBody request with any body CreatePortalTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -452,6 +461,18 @@ func (c *Client) QueryPortalMeter(ctx context.Context, meterSlug string, params return c.Client.Do(req) } +func (c *Client) ListPortalTokens(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPortalTokensRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) CreatePortalTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewCreatePortalTokenRequestWithBody(c.Server, contentType, body) if err != nil { @@ -1057,6 +1078,55 @@ func NewQueryPortalMeterRequest(server string, meterSlug string, params *QueryPo return req, nil } +// NewListPortalTokensRequest generates requests for ListPortalTokens +func NewListPortalTokensRequest(server string, params *ListPortalTokensParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/portal/tokens") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + // NewCreatePortalTokenRequest calls the generic CreatePortalToken builder with application/json body func NewCreatePortalTokenRequest(server string, body CreatePortalTokenJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader @@ -1213,6 +1283,9 @@ type ClientWithResponsesInterface interface { // QueryPortalMeterWithResponse request QueryPortalMeterWithResponse(ctx context.Context, meterSlug string, params *QueryPortalMeterParams, reqEditors ...RequestEditorFn) (*QueryPortalMeterResponse, error) + // ListPortalTokensWithResponse request + ListPortalTokensWithResponse(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*ListPortalTokensResponse, error) + // CreatePortalTokenWithBodyWithResponse request with any body CreatePortalTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error) @@ -1440,6 +1513,30 @@ func (r QueryPortalMeterResponse) StatusCode() int { return 0 } +type ListPortalTokensResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]PortalToken + ApplicationproblemJSON400 *BadRequestProblemResponse + ApplicationproblemJSONDefault *UnexpectedProblemResponse +} + +// Status returns HTTPResponse.Status +func (r ListPortalTokensResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListPortalTokensResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type CreatePortalTokenResponse struct { Body []byte HTTPResponse *http.Response @@ -1592,6 +1689,15 @@ func (c *ClientWithResponses) QueryPortalMeterWithResponse(ctx context.Context, return ParseQueryPortalMeterResponse(rsp) } +// ListPortalTokensWithResponse request returning *ListPortalTokensResponse +func (c *ClientWithResponses) ListPortalTokensWithResponse(ctx context.Context, params *ListPortalTokensParams, reqEditors ...RequestEditorFn) (*ListPortalTokensResponse, error) { + rsp, err := c.ListPortalTokens(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListPortalTokensResponse(rsp) +} + // CreatePortalTokenWithBodyWithResponse request with arbitrary body returning *CreatePortalTokenResponse func (c *ClientWithResponses) CreatePortalTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePortalTokenResponse, error) { rsp, err := c.CreatePortalTokenWithBody(ctx, contentType, body, reqEditors...) @@ -1992,6 +2098,46 @@ func ParseQueryPortalMeterResponse(rsp *http.Response) (*QueryPortalMeterRespons return response, nil } +// ParseListPortalTokensResponse parses an HTTP response from a ListPortalTokensWithResponse call +func ParseListPortalTokensResponse(rsp *http.Response) (*ListPortalTokensResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListPortalTokensResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []PortalToken + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequestProblemResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.ApplicationproblemJSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: + var dest UnexpectedProblemResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.ApplicationproblemJSONDefault = &dest + + } + + return response, nil +} + // ParseCreatePortalTokenResponse parses an HTTP response from a CreatePortalTokenWithResponse call func ParseCreatePortalTokenResponse(rsp *http.Response) (*CreatePortalTokenResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -2068,59 +2214,60 @@ func ParseInvalidatePortalTokensResponse(rsp *http.Response) (*InvalidatePortalT // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+xbe3MTtxb/Khpd/oDb9TMJFP9zx4QALiShiVMKSW4q7x7bKrvSImnjmEy++x099uVd", - "xxtIhnZuO0zHtqSj8z5HPynX2OdRzBkwJfHgGsdEkAgUCPPNfBoFh+I4TGb6hwCkL2isKGd4gIcoYfRL", - "AogGwBSdUhBoygVSc0BmaRt7mOqZMVFz7GFGIsCDFbIeFvAloQICPFAiAQ9Lfw4R0fs9EjDFA/yvTs5l", - "x47KTkbg5sbDXxIQy1eCR1UujxURCgVEQUvRCBBl6OjVLtra2nquuY2Iap+xEfPDRNJLaJ+xlGlDM+d6", - "qqkXmbOL8QBntLGH1TLWk6USlBVYey14Er9YVrkbTRHjCskYfK3AABEkKZuFgMhsJmBGFKAFDUM0ASRA", - "JYJBYJQMxJ8jmUz+BF8hwgJkhFtQFvBF+4z94Yb+QFQiggRIEJcQoJlmBE2W6JKEyS3SzhzDRYGpgsj4", - "xYqQmdRECLLMhT62LJilNVs4Dr9rizGvqnSPBfdgbsW/2dgfjBGO6VfYbG8vN3giyWyj2XVs6WAToJaI", - "T8333HliEJSv8Q9j0fXyLnKmm0ZgQc4V2cc0gk+c1cg/noN1Pe2Xmnm9fSqIMdhXzgARiQKYUi01ZWZs", - "ND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RvLOg8pm6lbmpnK+Gko9fNWa", + "8Zb70fq3TSaFkRaNYi6UveqayDyjap5M2j6POr42c7NQdmTwuTXjnct+x/xgKC3ehDmDwykenK4K7+Td", + "6CV6fMKoJpyE4RKd2DvyO7iiPp8JEs+pbwaOuVBaPSgLDeKJzRgKhN7r36fd1vPhi92Xe69ev/nl7f7B", + "+1+Pjse/ffj946fz6/7Tm0dVeXrXOCJXqQ083Vo1ieLmpPW123p+/tPjfw0usi9P/r9m1/Ma2xmxGUgF", + "QbN8Xc68kK65rYawG994+JKENDDhZs8UDINrLIAEhyxcrrHsFauyx53X5N59UGA2LNOX3sFcfLyNSrPD", + "sDB/teCpgiaF72m0ytCS3G32l8jsjV4WljfwacPsuNax8/LFOLXi+WXzDi7rZdjAWqXXXN9XamYSQWCK", + "s/dEzRFcxQKk9nOd/xFcKUF8ZSRTxiskmgoeFQK8Lh1WirAI1JwHeIAftd3HrAp71DYf6qqwupKhEb6V", + "S63be/1059OznZ3hqw/Dt2/2ev2Dj93dX5+/emMwrlst1sPy2yG2nIRoeWF+1ang/sOAccUEnKZrwKwa", + "ha7q0979N2kRP2oXa+kaShYljOUOKEUxMEiLPxbdvehApVM25JuIBxDK9r6TfrOEw2NgRl+U55878edZ", + "x25nCK5EmFq/LvCQeXciocZY3F3g+GQfe3j38ORgjD08/O019vD+6ED/f/g7rkT89dwOS9K7b8Z/TUAs", + "j0AabOV6zQ0uQw03Rmq7HV9UEUXPArwNoT4PK9587r0Yq2F2bRLLGKsI6Vui9Zosk5+5tmAfV8t0o1x3", + "WW2SwczMAlksiSYgcjnuseDOolfEmmJDGLcod0tOeaciKXcIDJmS7tVP3us6Mhzzz8BqSpkw5AsIzPG6", + "dpW3o+wRZSM72FtxEA/bTOSGte50tXEVUwFyuF64mxNfbko1TuaYulvBl3cWcvrSzeo8KIWr7gQGDZFb", + "hl6CIjSUyG6IHuu73LOfu8+erKBDZhoe4DmQAARyuE5L5xo0JxIlOTRm0+RZCZO5isIzbJBpqYi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vkZrJEDigtG4+dlBrP", + "3TJ8+QloTeqsCWUHPL39Wf1tN5J+7aOlv732vPoY+BpUWSnVUPga1AOppPvw/plmq7+m2u/mUrYWXZvB", + "DPy3JhKbsXtRnPdw5XWTqUUE+05LsmeVTZelz4ubzk/fYD+8aRebFsaS4Ep1fHlpet8ZcmBvyRdSEaE8", + "9wVY4Dn00rPdS0/f0TwDbZ2x4nuQ7sD8M+9BvGygvzKQPWrpeTNQnn2H5vX697HXgosw8Prdv7RXv0jX", + "dunuVfNM9ocobu8QMJyum1S9KJu7tvo9zmd819jf+BX/j6xRixOVFVufBWoive3ZrIn36/5kZuOfy1TQ", + "xf+VVPBPaP8ntNcHgu0mZf5t7/XvL5ikWLPx8RLKfHpunti5YGNjQ22wMS1MuTa06ERQ6AbX5IH/foC0", + "2A3/cRNOZgM5rFOH3BSZfRj8piTO6l8q3Wd8XTnqR9PUOm/tUOZesIJtL9Wpc5TNWfHfb9VpuVO//o1F", + "9S1knZIboDF/W7XkP9b8oWjMqe2OZM/aqWkmUDbLuw0u9jnMutpnqt0nQ6rdaldCNlxtes6WhWwHx9LN", + "+c1/AgAA//94eZOatj0AAA==", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/openapi.yaml b/api/openapi.yaml index 745252a8f..a18ee8e1c 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -221,6 +221,32 @@ paths: $ref: "#/components/responses/BadRequestProblemResponse" default: $ref: "#/components/responses/UnexpectedProblemResponse" + get: + operationId: listPortalTokens + tags: + - Portal + parameters: + - name: limit + in: query + required: false + description: Number of events to return. + schema: + type: integer + minimum: 1 + maximum: 100 + responses: + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: "#/components/schemas/PortalToken" + "400": + $ref: "#/components/responses/BadRequestProblemResponse" + default: + $ref: "#/components/responses/UnexpectedProblemResponse" /api/v1/portal/tokens/invalidate: post: operationId: invalidatePortalTokens diff --git a/internal/server/router/portal.go b/internal/server/router/portal.go index 1a4f60d12..2d19f1a38 100644 --- a/internal/server/router/portal.go +++ b/internal/server/router/portal.go @@ -40,6 +40,11 @@ func (a *Router) CreatePortalToken(w http.ResponseWriter, r *http.Request) { }) } +func (a *Router) ListPortalTokens(w http.ResponseWriter, r *http.Request, params api.ListPortalTokensParams) { + err := fmt.Errorf("not implemented: portal token listing is an OpenMeter Cloud only feature") + models.NewStatusProblem(r.Context(), err, http.StatusNotImplemented).Respond(w, r) +} + func (a *Router) InvalidatePortalTokens(w http.ResponseWriter, r *http.Request) { err := fmt.Errorf("not implemented: portal token invalidation is an OpenMeter Cloud only feature") models.NewStatusProblem(r.Context(), err, http.StatusNotImplemented).Respond(w, r) diff --git a/internal/server/server_test.go b/internal/server/server_test.go index 311442c66..7db120efb 100644 --- a/internal/server/server_test.go +++ b/internal/server/server_test.go @@ -367,6 +367,16 @@ func TestRoutes(t *testing.T) { status: http.StatusNotImplemented, }, }, + { + name: "list portal tokens", + req: testRequest{ + method: http.MethodGet, + path: "/api/v1/portal/tokens", + }, + res: testResponse{ + status: http.StatusNotImplemented, + }, + }, } for _, tt := range tests { From f4e6395adf0dc2c3b5b5e28fa3f500a62fc343a0 Mon Sep 17 00:00:00 2001 From: Peter Marton Date: Wed, 13 Dec 2023 09:38:51 +0100 Subject: [PATCH 2/7] docs(api): limit description --- api/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index a18ee8e1c..fb09a147b 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -229,7 +229,7 @@ paths: - name: limit in: query required: false - description: Number of events to return. + description: Number of portal tokens to return. Default is 25. schema: type: integer minimum: 1 From ea918519e7260be8da3a5ef218c1a630eb1d597c Mon Sep 17 00:00:00 2001 From: Peter Marton Date: Wed, 13 Dec 2023 10:44:10 +0100 Subject: [PATCH 3/7] feat(api): add portal token id and created at --- api/api.gen.go | 112 ++++++++++++++++++------------------ api/client/go/client.gen.go | 112 ++++++++++++++++++------------------ api/openapi.yaml | 9 +++ 3 files changed, 123 insertions(+), 110 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index 5c30ac557..480f1cb83 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -61,7 +61,9 @@ type MeterQueryRow = models.MeterQueryRow // PortalToken defines model for PortalToken. type PortalToken struct { AllowedMeterSlugs *[]string `json:"allowedMeterSlugs,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` ExpiresAt *time.Time `json:"expiresAt,omitempty"` + Id *string `json:"id,omitempty"` Subject string `json:"subject"` Token *string `json:"token,omitempty"` } @@ -172,7 +174,7 @@ type QueryPortalMeterParams struct { // ListPortalTokensParams defines parameters for ListPortalTokens. type ListPortalTokensParams struct { - // Limit Number of events to return. + // Limit Number of portal tokens to return. Default is 25. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` } @@ -838,60 +840,60 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+xb+3MTt/b/VzT68gN8u34mgeJf7pgQwIUkNHFKIclN5d1jW2VXWiRtHJPJ/35Hj315", - "1/GGJkO5tx2mY1uv8z5Hn6NcY59HMWfAlMSDaxwTQSJQIMw382kUHIrjMJnpHwKQvqCxopzhAR6ihNEv", - "CSAaAFN0SkGgKRdIzQGZpW3sYapnxkTNsYcZiQAPVrb1sIAvCRUQ4IESCXhY+nOIiD7vkYApHuD/6+RU", - "duyo7GQb3Nx4+EsCYvlK8KhK5bEiQqGAKGgpGgGiDB292kVbW1vPNbURUe0zNmJ+mEh6Ce0zlhJt9syp", - "nurdi8TZxXiAs72xh9Uy1pOlEpQVSHsteBK/WFapG00R4wrJGHwtwAARJCmbhYDIbCZgRhSgBQ1DNAEk", - "QCWCQWCEDMSfI5lM/gRfIcICZJhbUBbwRfuM/eGG/kBUIoIESBCXEKCZJgRNluiShMkt3M4cwUWGqYLI", - "2MUKkxnXRAiyzJk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4U5Z5GnWsQAWERIduxS1ngs4oI4qyWYHLMg8kphfC1RF1JXN++zvFRvLOg8pm6lbmpnK+Gko9fNWa", - "8Zb70fq3TSaFkRaNYi6UveqayDyjap5M2j6POr42c7NQdmTwuTXjnct+x/xgKC3ehDmDwykenK4K7+Td", - "6CV6fMKoJpyE4RKd2DvyO7iiPp8JEs+pbwaOuVBaPSgLDeKJzRgKhN7r36fd1vPhi92Xe69ev/nl7f7B", - "+1+Pjse/ffj946fz6/7Tm0dVeXrXOCJXqQ083Vo1ieLmpPW123p+/tPjfw0usi9P/r9m1/Ma2xmxGUgF", - "QbN8Xc68kK65rYawG994+JKENDDhZs8UDINrLIAEhyxcrrHsFauyx53X5N59UGA2LNOX3sFcfLyNSrPD", - "sDB/teCpgiaF72m0ytCS3G32l8jsjV4WljfwacPsuNax8/LFOLXi+WXzDi7rZdjAWqXXXN9XamYSQWCK", - "s/dEzRFcxQKk9nOd/xFcKUF8ZSRTxiskmgoeFQK8Lh1WirAI1JwHeIAftd3HrAp71DYf6qqwupKhEb6V", - "S63be/1059OznZ3hqw/Dt2/2ev2Dj93dX5+/emMwrlst1sPy2yG2nIRoeWF+1ang/sOAccUEnKZrwKwa", - "ha7q0979N2kRP2oXa+kaShYljOUOKEUxMEiLPxbdvehApVM25JuIBxDK9r6TfrOEw2NgRl+U55878edZ", - "x25nCK5EmFq/LvCQeXciocZY3F3g+GQfe3j38ORgjD08/O019vD+6ED/f/g7rkT89dwOS9K7b8Z/TUAs", - "j0AabOV6zQ0uQw03Rmq7HV9UEUXPArwNoT4PK9587r0Yq2F2bRLLGKsI6Vui9Zosk5+5tmAfV8t0o1x3", - "WW2SwczMAlksiSYgcjnuseDOolfEmmJDGLcod0tOeaciKXcIDJmS7tVP3us6Mhzzz8BqSpkw5AsIzPG6", - "dpW3o+wRZSM72FtxEA/bTOSGte50tXEVUwFyuF64mxNfbko1TuaYulvBl3cWcvrSzeo8KIWr7gQGDZFb", - "hl6CIjSUyG6IHuu73LOfu8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yZke41Tt7pPjIc88/AalqZMOQLCMz2uneV", + "t6PsEWUjO9hbCRAP20rkhrXtbjzsC9DngeF65W4sfHAVUwHye0jY4r25xOZOWxPOTn13ay3tgSW7yMhl", + "KaompV4XvClSdiccaojcMrQHitBQIksQPdbHyGe/dp89WQGmzDQ8wHMgAQjkIKWWLnNoTiRKclTOVuiz", + "Ehx0FYVn2IDiUhHmg4Ec2MD1iIOQ+yTs/HZwFPpKvvnj11ZX/9fTqlFEJRIPtrtdfWZWprgXkeVMJZqe", + "AxtNXAwmJGiJHH9eyfxOoGq/NE8iwlraiuZsBVdxSJitiyl0YU+vVBYP5i5XOQ7KzUhzpZ1V1XZmFFd1", + "2UyTVRFOj0coQ3MsREZX0LNUkoYSNDPWCuhWjR9nzLqc/3o8fofsBOTzANAMGAiDFUyWBawAmXvItIlt", + "bAPjPxl/lKmtvu1xaaTbmZ3nz03usp+ss1nuKVMws9XDuV9V3wTJORfKW/UdmUQREcsVvkx7VVZvrUNv", + "glmMG/mcKUKZRMRYvc7W67e9NWQ2mXMlkTl0xeooM7WXBlqzIndiVqUp7V6L3G13qoUO1F2AI0m/QrHb", + "PRgdno73sYdfH50eYw/vDT807HHfF+9F700gHU3gJ4KqpbmdsFktLlfyCRAB4mVqxr8X2V255s+O5oad", + "KxVbypRNTXMaUh/c7Y67wBzGxJ8D6htMNhGhW+auT4kZNReobqnsvB3t7h+e7Lf67W57rqKwEEj4KAZm", + "MYrhuxH2cAYp41672+62SBjPSbuvl2g1kJjiAd5qd9tb7khuhO6QmHYuexZnsx0r1DSWx6AEhUtAIVEg", + "FRJkYU+PBm/WtcE4wEif/N9SqSxcbTbKn7R8qu++8ymd/CHJjdds8pibqSsAh+lZM9zUwBr2Hr+95m45", + "pBEtv4XIsltP57Msu/Wque3mfOUCud/t3nKnV73La3SAKiN+1ScZFZTH3RiknOkl25axum0yATrrr7/N", + "Fu6ifROV9bedmlNFdCv8yfGIz3WHwWWN31mpnRkrnmZHM19zyfcFD5a36L+AM9/xXnU/w6LX0GtNiPLn", + "v3yjhW+xbPmN1k3F37armjt688+2+I2X5Z78yVtt7tH5BLk5dbnmIB16+CC0AFOD4LM8lYLvnhXppF4f", + "OrvmBIRSRLKsNzuY4mXNAuduweJU1cR7ew+xaZ0ygvsJiR3L8e0Ubn8h84D+UAmsznXpyeeNdZUQVO3t", + "o/7egUaTJXIYbdl57KTUee5W4cuvT2tKZ00qO+Tp6c/ab7uR9mvfS/3jrefV58BXoMpGqabCV6AeyCTd", + "h4/PtFp9n2l/WEjZXnRtBTPI45pMbMbuxXDew7XXTaYWwfM7LcledDZdlr5sbjo/ff798K5dvC8xngRX", + "quPLS3PtniEH9pR8IRURynMfgAWeQzI9e3Hq6TOaZ6CtM1Z8itIdmH/mKYqXDfRXBrL3ND1vBsqzT+C8", + "Xv8+aC24CAOv3/0uWv0iX9uls1fNC92form9Q8Jwtm7S9aJs7tru9ySf8UNzf+MfEPzMFrU4Udmw9VWg", + "JtPb66I1+X7dr3U2/lKngi7+t5SCf1P7v6m9PhFsN2nzb/upwP0lkxRrNjFeQpk/nZvXfS7Z2NxQm2zM", + "FaZcm1p0IShcRNfUgXUAqaWPLP0CTor2rOyIStTf+Xlh0+L1/M9bhjLPyMGeOjynKOzDoDoldVZ/OnWf", + "WXdlq5/NUutiuEOZe1IL9tKpzpyjbM5KVH+rTcv39+ufYlQfZ9YZuQFG8481S/5lzS9XY07tnUn2zp6a", + "KwbKZvkdhMt9Dsmu3j7V0snwa7faNZYNV5ubaCtCRsGJdHN+858AAAD//zGNU4JHPgAA", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/client/go/client.gen.go b/api/client/go/client.gen.go index 15d3204cb..94e01ce63 100644 --- a/api/client/go/client.gen.go +++ b/api/client/go/client.gen.go @@ -62,7 +62,9 @@ type MeterQueryRow = models.MeterQueryRow // PortalToken defines model for PortalToken. type PortalToken struct { AllowedMeterSlugs *[]string `json:"allowedMeterSlugs,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` ExpiresAt *time.Time `json:"expiresAt,omitempty"` + Id *string `json:"id,omitempty"` Subject string `json:"subject"` Token *string `json:"token,omitempty"` } @@ -173,7 +175,7 @@ type QueryPortalMeterParams struct { // ListPortalTokensParams defines parameters for ListPortalTokens. type ListPortalTokensParams struct { - // Limit Number of events to return. + // Limit Number of portal tokens to return. Default is 25. Limit *int `form:"limit,omitempty" json:"limit,omitempty"` } @@ -2214,60 +2216,60 @@ func ParseInvalidatePortalTokensResponse(rsp *http.Response) (*InvalidatePortalT // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+xb+3MTt/b/VzT68gN8u34mgeJf7pgQwIUkNHFKIclN5d1jW2VXWiRtHJPJ/35Hj315", - "1/GGJkO5tx2mY1uv8z5Hn6NcY59HMWfAlMSDaxwTQSJQIMw382kUHIrjMJnpHwKQvqCxopzhAR6ihNEv", - "CSAaAFN0SkGgKRdIzQGZpW3sYapnxkTNsYcZiQAPVrb1sIAvCRUQ4IESCXhY+nOIiD7vkYApHuD/6+RU", - "duyo7GQb3Nx4+EsCYvlK8KhK5bEiQqGAKGgpGgGiDB292kVbW1vPNbURUe0zNmJ+mEh6Ce0zlhJt9syp", - "nurdi8TZxXiAs72xh9Uy1pOlEpQVSHsteBK/WFapG00R4wrJGHwtwAARJCmbhYDIbCZgRhSgBQ1DNAEk", - "QCWCQWCEDMSfI5lM/gRfIcICZJhbUBbwRfuM/eGG/kBUIoIESBCXEKCZJgRNluiShMkt3M4cwUWGqYLI", - "2MUKkxnXRAiyzJk+tiSYpTVHOAr/0hFjXhXpHgvuQd2Kf7OyPxglHNOvsFnfXq7wRJLZRrVr39LOJkAt", - "EZ+a77nxxCAoX2MfRqPr+V3kRDf1wAKfK7yPaQSfOKvhfzwHa3raLjXx+viUEaOwr5wBIhIFMKWaa8rM", - "2Gh4MER6X6Q3Ri+JIhMiAT2eKxUPOp3FYtGmhJE2F7OO3qilN5JPtLYrMtcbnox3zYHmvFTW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69ev/nl7f7B", - "+1+Pjse/ffj946fz6/7Tm0dVeXrXOCJXqQ083Vo1ieLmpPW123p+/tPjfw0usi9P/r9m1/Ma2xmxGUgF", - "QbN8Xc68kK65rYawG994+JKENDDhZs8UDINrLIAEhyxcrrHsFauyx53X5N59UGA2LNOX3sFcfLyNSrPD", - "sDB/teCpgiaF72m0ytCS3G32l8jsjV4WljfwacPsuNax8/LFOLXi+WXzDi7rZdjAWqXXXN9XamYSQWCK", - "s/dEzRFcxQKk9nOd/xFcKUF8ZSRTxiskmgoeFQK8Lh1WirAI1JwHeIAftd3HrAp71DYf6qqwupKhEb6V", - "S63be/1059OznZ3hqw/Dt2/2ev2Dj93dX5+/emMwrlst1sPy2yG2nIRoeWF+1ang/sOAccUEnKZrwKwa", - "ha7q0979N2kRP2oXa+kaShYljOUOKEUxMEiLPxbdvehApVM25JuIBxDK9r6TfrOEw2NgRl+U55878edZ", - "x25nCK5EmFq/LvCQeXciocZY3F3g+GQfe3j38ORgjD08/O019vD+6ED/f/g7rkT89dwOS9K7b8Z/TUAs", - "j0AabOV6zQ0uQw03Rmq7HV9UEUXPArwNoT4PK9587r0Yq2F2bRLLGKsI6Vui9Zosk5+5tmAfV8t0o1x3", - "WW2SwczMAlksiSYgcjnuseDOolfEmmJDGLcod0tOeaciKXcIDJmS7tVP3us6Mhzzz8BqSpkw5AsIzPG6", - "dpW3o+wRZSM72FtxEA/bTOSGte50tXEVUwFyuF64mxNfbko1TuaYulvBl3cWcvrSzeo8KIWr7gQGDZFb", - "hl6CIjSUyG6IHuu73LOfu8+erKBDZhoe4DmQAARyuE5L5xo0JxIlOTRm0+RZCZO5isIzbJBpqYi+5+t7", - "Pxu4Qm0Qcp+EnV/2D0Nfybe//dzq6v96+sqkiEokHmx3u/riqkyGLcK7mUj0fg7xM8Y5mJCgJXIQeCX8", - "OoaqRcs8iQhraaWZCw5cxSFhNjml+IG9QlJZvB27gOEoKFcEzYV2VhXbmRFcFSfKJFll4eRohDJIxeJU", - "d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/HZwFPpKvvnj11ZX/9fTqlFEJRIPtrtdfWZWprgXkeVMJZqe", + "AxtNXAwmJGiJHH9eyfxOoGq/NE8iwlraiuZsBVdxSJitiyl0YU+vVBYP5i5XOQ7KzUhzpZ1V1XZmFFd1", + "2UyTVRFOj0coQ3MsREZX0LNUkoYSNDPWCuhWjR9nzLqc/3o8fofsBOTzANAMGAiDFUyWBawAmXvItIlt", + "bAPjPxl/lKmtvu1xaaTbmZ3nz03usp+ss1nuKVMws9XDuV9V3wTJORfKW/UdmUQREcsVvkx7VVZvrUNv", + "glmMG/mcKUKZRMRYvc7W67e9NWQ2mXMlkTl0xeooM7WXBlqzIndiVqUp7V6L3G13qoUO1F2AI0m/QrHb", + "PRgdno73sYdfH50eYw/vDT807HHfF+9F700gHU3gJ4KqpbmdsFktLlfyCRAB4mVqxr8X2V255s+O5oad", + "KxVbypRNTXMaUh/c7Y67wBzGxJ8D6htMNhGhW+auT4kZNReobqnsvB3t7h+e7Lf67W57rqKwEEj4KAZm", + "MYrhuxH2cAYp41672+62SBjPSbuvl2g1kJjiAd5qd9tb7khuhO6QmHYuexZnsx0r1DSWx6AEhUtAIVEg", + "FRJkYU+PBm/WtcE4wEif/N9SqSxcbTbKn7R8qu++8ymd/CHJjdds8pibqSsAh+lZM9zUwBr2Hr+95m45", + "pBEtv4XIsltP57Msu/Wque3mfOUCud/t3nKnV73La3SAKiN+1ScZFZTH3RiknOkl25axum0yATrrr7/N", + "Fu6ifROV9bedmlNFdCv8yfGIz3WHwWWN31mpnRkrnmZHM19zyfcFD5a36L+AM9/xXnU/w6LX0GtNiPLn", + "v3yjhW+xbPmN1k3F37armjt688+2+I2X5Z78yVtt7tH5BLk5dbnmIB16+CC0AFOD4LM8lYLvnhXppF4f", + "OrvmBIRSRLKsNzuY4mXNAuduweJU1cR7ew+xaZ0ygvsJiR3L8e0Ubn8h84D+UAmsznXpyeeNdZUQVO3t", + "o/7egUaTJXIYbdl57KTUee5W4cuvT2tKZ00qO+Tp6c/ab7uR9mvfS/3jrefV58BXoMpGqabCV6AeyCTd", + "h4/PtFp9n2l/WEjZXnRtBTPI45pMbMbuxXDew7XXTaYWwfM7LcledDZdlr5sbjo/ff798K5dvC8xngRX", + "quPLS3PtniEH9pR8IRURynMfgAWeQzI9e3Hq6TOaZ6CtM1Z8itIdmH/mKYqXDfRXBrL3ND1vBsqzT+C8", + "Xv8+aC24CAOv3/0uWv0iX9uls1fNC92form9Q8Jwtm7S9aJs7tru9ySf8UNzf+MfEPzMFrU4Udmw9VWg", + "JtPb66I1+X7dr3U2/lKngi7+t5SCf1P7v6m9PhFsN2nzb/upwP0lkxRrNjFeQpk/nZvXfS7Z2NxQm2zM", + "FaZcm1p0IShcRNfUgXUAqaWPLP0CTor2rOyIStTf+Xlh0+L1/M9bhjLPyMGeOjynKOzDoDoldVZ/OnWf", + "WXdlq5/NUutiuEOZe1IL9tKpzpyjbM5KVH+rTcv39+ufYlQfZ9YZuQFG8481S/5lzS9XY07tnUn2zp6a", + "KwbKZvkdhMt9Dsmu3j7V0snwa7faNZYNV5ubaCtCRsGJdHN+858AAAD//zGNU4JHPgAA", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/openapi.yaml b/api/openapi.yaml index fb09a147b..a0327990f 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -549,16 +549,25 @@ components: PortalToken: type: object required: + - id - subject - expiresAt + - createdAt - token properties: + id: + type: string + readOnly: true subject: type: string expiresAt: type: string format: date-time readOnly: true + createdAt: + type: string + format: date-time + readOnly: true token: type: string readOnly: true From b640e0431809d6b5e8de27fac0ade18f72980a20 Mon Sep 17 00:00:00 2001 From: Peter Marton Date: Thu, 14 Dec 2023 09:08:40 +0100 Subject: [PATCH 4/7] feat(portal): add id --- api/api.gen.go | 113 +++++++++++++----------- api/client/go/client.gen.go | 113 +++++++++++++----------- api/openapi.yaml | 5 ++ internal/server/authenticator/portal.go | 9 ++ internal/server/router/portal.go | 1 + 5 files changed, 133 insertions(+), 108 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index 480f1cb83..ba6bb400e 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -180,6 +180,10 @@ type ListPortalTokensParams struct { // InvalidatePortalTokensJSONBody defines parameters for InvalidatePortalTokens. type InvalidatePortalTokensJSONBody struct { + // Id Optional portal token ID to invalidate one token by. + Id *string `json:"id,omitempty"` + + // Subject Optional subject to invalidate all tokens for subject. Subject *string `json:"subject,omitempty"` } @@ -840,60 +844,61 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+xb+3MTt7f/VzS6/AC362cSKP7ljkkCuJCEJk4pkNxU3j22VXalRdLGMZn879/RY1/e", - "dbyBZCjzbYfpxJZ0dN7n6CP5Gvs8ijkDpiQeXOOYCBKBAmE+mb9GwZE4CZOZ/iIA6QsaK8oZHuAhShj9", - "kgCiATBFpxQEmnKB1ByQWdrGHqZ6ZkzUHHuYkQjwYIWshwV8SaiAAA+USMDD0p9DRPR+jwRM8QD/Tyfn", - "smNHZScjcHPj4S8JiOVLwaMqlyeKCIUCoqClaASIMnT8chdtbW0919xGRLXP2Ij5YSLpJbTPWMq0oZlz", - "PdXUi8zZxXiAM9rYw2oZ68lSCcoKrL0SPIlfLKvcjaaIcYVkDL5WYIAIkpTNQkBkNhMwIwrQgoYhmgAS", - "oBLBIDBKBuLPkUwmf4OvEGEBMsItKAv4on3G/nJDfyEqEUECJIhLCNBMM4ImS3RJwuQWaWeO4aLAVEFk", - "/GJFyExqIgRZ5kKfWBbM0potHIfftcWYV1W6z4J7MLfi32zs98YIJ/QrbLa3lxs8kWS20ew6tnSwCVBL", - "xKfmc+48MQjK1/iHseh6eRc5000jsCDniuxjGsFHzmrkH8/Bup72S8283j4VxBjsK2eAiEQBTKmWmjIz", - "NhoeDpGmizRhtEcUmRAJ6PFcqXjQ6SwWizYljLS5mHU0oZYmJJ9oa1d0rgm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YP5i5XOQ7KzUhzpZ1V1XZmFFd1", - "2UyTVRFOj0coQ3MsREZX0LNUkoYSNDPWCuhWjR9nzLqc/3o8fofsBOTzANAMGAiDFUyWBawAmXvItIlt", - "bAPjPxl/lKmtvu1xaaTbmZ3nz03usp+ss1nuKVMws9XDuV9V3wTJORfKW/UdmUQREcsVvkx7VVZvrUNv", - "glmMG/mcKUKZRMRYvc7W67e9NWQ2mXMlkTl0xeooM7WXBlqzIndiVqUp7V6L3G13qoUO1F2AI0m/QrHb", - "PRgdno73sYdfH50eYw/vDT807HHfF+9F700gHU3gJ4KqpbmdsFktLlfyCRAB4mVqxr8X2V255s+O5oad", - "KxVbypRNTXMaUh/c7Y67wBzGxJ8D6htMNhGhW+auT4kZNReobqnsvB3t7h+e7Lf67W57rqKwEEj4KAZm", - "MYrhuxH2cAYp41672+62SBjPSbuvl2g1kJjiAd5qd9tb7khuhO6QmHYuexZnsx0r1DSWx6AEhUtAIVEg", - "FRJkYU+PBm/WtcE4wEif/N9SqSxcbTbKn7R8qu++8ymd/CHJjdds8pibqSsAh+lZM9zUwBr2Hr+95m45", - "pBEtv4XIsltP57Msu/Wque3mfOUCud/t3nKnV73La3SAKiN+1ScZFZTH3RiknOkl25axum0yATrrr7/N", - "Fu6ifROV9bedmlNFdCv8yfGIz3WHwWWN31mpnRkrnmZHM19zyfcFD5a36L+AM9/xXnU/w6LX0GtNiPLn", - "v3yjhW+xbPmN1k3F37armjt688+2+I2X5Z78yVtt7tH5BLk5dbnmIB16+CC0AFOD4LM8lYLvnhXppF4f", - "OrvmBIRSRLKsNzuY4mXNAuduweJU1cR7ew+xaZ0ygvsJiR3L8e0Ubn8h84D+UAmsznXpyeeNdZUQVO3t", - "o/7egUaTJXIYbdl57KTUee5W4cuvT2tKZ00qO+Tp6c/ab7uR9mvfS/3jrefV58BXoMpGqabCV6AeyCTd", - "h4/PtFp9n2l/WEjZXnRtBTPI45pMbMbuxXDew7XXTaYWwfM7LcledDZdlr5sbjo/ff798K5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", + "PurfHWg0WSKH0Zadxz6UOs/dKnz59mlN6axJZYc83f1Z+2030n7tfal/vPW8+hz4ClTZKNVU+ArUA5mk", + "+/DxmVar7zPtDwsp24uurWAGeVyTic3YvRjOe7j2usmjRfD8TlOyG51Np6U3m5s+n17/fnjXLp6XGE+C", + "K9Xx5aU5ds+QA7tLvpCKCOW5L8ACzyGZnj049fQezTPQ1hkrXkXpDsyfuYriZQP9lYHsPk3Pm4Hy7BU4", + "r9e/D1oLLsLA63e/i1a/yNd2ae9Vc0P3p2hu75AwnK2bdL0oe3Zt93uSP/FDc3/jFwh+ZotanKhs2Poq", + "UJPp7XHRmny/7m2djW/qVNDF/5ZS8G9q/ze11yeC7SZt/m2vCtxfMkmxZhPjJZT507m53eeSjc0NtcnG", + "HGHKtalFF4LCQXRNHVgHkFr6yNIv4KRoz8qOqET9nZ8XNi0ez/+8ZSjzjBzsqcNzisI+DKpTUmf11an7", + "zLorS/1slloXwx3K3JVasIdOdeYcZc+sRPW32rTmNUhmjnxpgLjI31QUUHo5MswyQ/qKXs69eUWifC+g", + "7hrnUWxvVZQyDRrt6VyTE0OaHTs0WbbxXV5SyBZIhSgTLsgwzSVt1x7JrtwPqfPvBvDUP9Yj8x9rXtqN", + "ObXHRdkrBtScrlA2y49fXNp3IH714K2WTgbdu9mup2442xzCWxEyCk6km/Ob/wQAAP//uSHXrEI/AAA=", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/client/go/client.gen.go b/api/client/go/client.gen.go index 94e01ce63..cb981f314 100644 --- a/api/client/go/client.gen.go +++ b/api/client/go/client.gen.go @@ -181,6 +181,10 @@ type ListPortalTokensParams struct { // InvalidatePortalTokensJSONBody defines parameters for InvalidatePortalTokens. type InvalidatePortalTokensJSONBody struct { + // Id Optional portal token ID to invalidate one token by. + Id *string `json:"id,omitempty"` + + // Subject Optional subject to invalidate all tokens for subject. Subject *string `json:"subject,omitempty"` } @@ -2216,60 +2220,61 @@ func ParseInvalidatePortalTokensResponse(rsp *http.Response) (*InvalidatePortalT // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+xb+3MTt7f/VzS6/AC362cSKP7ljkkCuJCEJk4pkNxU3j22VXalRdLGMZn879/RY1/e", - "dbyBZCjzbYfpxJZ0dN7n6CP5Gvs8ijkDpiQeXOOYCBKBAmE+mb9GwZE4CZOZ/iIA6QsaK8oZHuAhShj9", - "kgCiATBFpxQEmnKB1ByQWdrGHqZ6ZkzUHHuYkQjwYIWshwV8SaiAAA+USMDD0p9DRPR+jwRM8QD/Tyfn", - "smNHZScjcHPj4S8JiOVLwaMqlyeKCIUCoqClaASIMnT8chdtbW0919xGRLXP2Ij5YSLpJbTPWMq0oZlz", - "PdXUi8zZxXiAM9rYw2oZ68lSCcoKrL0SPIlfLKvcjaaIcYVkDL5WYIAIkpTNQkBkNhMwIwrQgoYhmgAS", - "oBLBIDBKBuLPkUwmf4OvEGEBMsItKAv4on3G/nJDfyEqEUECJIhLCNBMM4ImS3RJwuQWaWeO4aLAVEFk", - "/GJFyExqIgRZ5kKfWBbM0potHIfftcWYV1W6z4J7MLfi32zs98YIJ/QrbLa3lxs8kWS20ew6tnSwCVBL", - "xKfmc+48MQjK1/iHseh6eRc5000jsCDniuxjGsFHzmrkH8/Bup72S8283j4VxBjsK2eAiEQBTKmWmjIz", - "NhoeDpGmizRhtEcUmRAJ6PFcqXjQ6SwWizYljLS5mHU0oZYmJJ9oa1d0rgmejnfNhma/VNeJhGCTjjLh", - "inoKYEqSUDvI6XgXexiuSBSHetEwAkF90jmExcUHLj7X+M2NzoEy5kyCcf4XJDiGLwlI9U7wSQjRsRvV", - "gz5nCpiJKhLHIfWJVm0ntjN/+VtqPV83NKGjb3koW+oFCZDjQsffIVcvecKCH8jRIVfI8OD4GWkNR8AU", - "/GiuCpxo3k4ZSdScC/r1h3JWZMOyBVcx+OoHM5UygUAILkzqcOs02f3LlIsgoHoNCd8JHoNQVAfHlIQS", - "VmnuhjwJzEKJTm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sYdfH50eYw/vDT807HHfF+9F700gHU3gJ4KqpbmdsFktLlfyCRAB4mVqxr8X2V255s+O5oad", - "KxVbypRNTXMaUh/c7Y67wBzGxJ8D6htMNhGhW+auT4kZNReobqnsvB3t7h+e7Lf67W57rqKwEEj4KAZm", - "MYrhuxH2cAYp41672+62SBjPSbuvl2g1kJjiAd5qd9tb7khuhO6QmHYuexZnsx0r1DSWx6AEhUtAIVEg", - "FRJkYU+PBm/WtcE4wEif/N9SqSxcbTbKn7R8qu++8ymd/CHJjdds8pibqSsAh+lZM9zUwBr2Hr+95m45", - "pBEtv4XIsltP57Msu/Wque3mfOUCud/t3nKnV73La3SAKiN+1ScZFZTH3RiknOkl25axum0yATrrr7/N", - "Fu6ifROV9bedmlNFdCv8yfGIz3WHwWWN31mpnRkrnmZHM19zyfcFD5a36L+AM9/xXnU/w6LX0GtNiPLn", - "v3yjhW+xbPmN1k3F37armjt688+2+I2X5Z78yVtt7tH5BLk5dbnmIB16+CC0AFOD4LM8lYLvnhXppF4f", - "OrvmBIRSRLKsNzuY4mXNAuduweJU1cR7ew+xaZ0ygvsJiR3L8e0Ubn8h84D+UAmsznXpyeeNdZUQVO3t", - "o/7egUaTJXIYbdl57KTUee5W4cuvT2tKZ00qO+Tp6c/ab7uR9mvfS/3jrefV58BXoMpGqabCV6AeyCTd", - "h4/PtFp9n2l/WEjZXnRtBTPI45pMbMbuxXDew7XXTaYWwfM7LcledDZdlr5sbjo/ff798K5dvC8xngRX", - "quPLS3PtniEH9pR8IRURynMfgAWeQzI9e3Hq6TOaZ6CtM1Z8itIdmH/mKYqXDfRXBrL3ND1vBsqzT+C8", - "Xv8+aC24CAOv3/0uWv0iX9uls1fNC92form9Q8Jwtm7S9aJs7tru9ySf8UNzf+MfEPzMFrU4Udmw9VWg", - "JtPb66I1+X7dr3U2/lKngi7+t5SCf1P7v6m9PhFsN2nzb/upwP0lkxRrNjFeQpk/nZvXfS7Z2NxQm2zM", - "FaZcm1p0IShcRNfUgXUAqa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hu75AwnK2bdL0oe3Zt93uSP/FDc3/jFwh+ZotanKhs2Poq", + "UJPp7XHRmny/7m2djW/qVNDF/5ZS8G9q/ze11yeC7SZt/m2vCtxfMkmxZhPjJZT507m53eeSjc0NtcnG", + "HGHKtalFF4LCQXRNHVgHkFr6yNIv4KRoz8qOqET9nZ8XNi0ez/+8ZSjzjBzsqcNzisI+DKpTUmf11an7", + "zLorS/1slloXwx3K3JVasIdOdeYcZc+sRPW32rTmNUhmjnxpgLjI31QUUHo5MswyQ/qKXs69eUWifC+g", + "7hrnUWxvVZQyDRrt6VyTE0OaHTs0WbbxXV5SyBZIhSgTLsgwzSVt1x7JrtwPqfPvBvDUP9Yj8x9rXtqN", + "ObXHRdkrBtScrlA2y49fXNp3IH714K2WTgbdu9mup2442xzCWxEyCk6km/Ob/wQAAP//uSHXrEI/AAA=", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/openapi.yaml b/api/openapi.yaml index a0327990f..5734af0a5 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -257,9 +257,14 @@ paths: application/json: schema: type: object + description: If none of id or subject are specified, all tokens will be invalidated. properties: + id: + type: string + description: Optional portal token ID to invalidate one token by. subject: type: string + description: Optional subject to invalidate all tokens for subject. responses: "204": description: No Content diff --git a/internal/server/authenticator/portal.go b/internal/server/authenticator/portal.go index 6a86ffc02..d8047f946 100644 --- a/internal/server/authenticator/portal.go +++ b/internal/server/authenticator/portal.go @@ -5,6 +5,7 @@ import ( "time" "github.com/golang-jwt/jwt/v5" + "github.com/google/uuid" ) var PortalTokenIssuer = "openmeter" @@ -13,6 +14,9 @@ var PortalTokenIssuer = "openmeter" type PortalTokenClaims struct { jwt.RegisteredClaims + // Id is the unique identifier of the token. + Id string `json:"id"` + // AllowedMeterSlugs is a list of meter slugs that the token allows access to. AllowedMeterSlugs []string `json:"allowed_meter_slugs,omitempty"` } @@ -23,6 +27,7 @@ func (c *PortalTokenClaims) GetAllowedMeterSlugs() ([]string, error) { } type PortalToken struct { + Id *string `json:"id"` AllowedMeterSlugs *[]string `json:"allowedMeterSlugs,omitempty"` ExpiresAt *time.Time `json:"expiresAt,omitempty"` Subject string `json:"subject"` @@ -50,6 +55,8 @@ func NewPortalTokenStrategy(secret string, expire time.Duration) (*PortalTokenSt } func (t *PortalTokenStrategy) Generate(subject string, allowedMeterSlugs *[]string, expiresAt *time.Time) (*PortalToken, error) { + id := uuid.New().String() + // set the default expiration time if expiresAt == nil { e := time.Now().Add(t.expire) @@ -60,6 +67,7 @@ func (t *PortalTokenStrategy) Generate(subject string, allowedMeterSlugs *[]stri } token := jwt.NewWithClaims(jwt.SigningMethodHS256, PortalTokenClaims{ + Id: id, RegisteredClaims: jwt.RegisteredClaims{ Subject: subject, ExpiresAt: jwt.NewNumericDate(*expiresAt), @@ -75,6 +83,7 @@ func (t *PortalTokenStrategy) Generate(subject string, allowedMeterSlugs *[]stri } return &PortalToken{ + Id: &id, AllowedMeterSlugs: allowedMeterSlugs, ExpiresAt: expiresAt, Subject: subject, diff --git a/internal/server/router/portal.go b/internal/server/router/portal.go index 2d19f1a38..531137492 100644 --- a/internal/server/router/portal.go +++ b/internal/server/router/portal.go @@ -33,6 +33,7 @@ func (a *Router) CreatePortalToken(w http.ResponseWriter, r *http.Request) { } render.JSON(w, r, api.PortalToken{ + Id: t.Id, Token: t.Token, ExpiresAt: t.ExpiresAt, Subject: t.Subject, From 76a41bf3c367c2d318f519f31a5b6ce77dd964b4 Mon Sep 17 00:00:00 2001 From: Peter Marton Date: Thu, 14 Dec 2023 09:19:11 +0100 Subject: [PATCH 5/7] feat(portal): add expired field --- api/api.gen.go | 102 ++++++++++++++++++------------------ api/client/go/client.gen.go | 102 ++++++++++++++++++------------------ api/openapi.yaml | 3 ++ 3 files changed, 107 insertions(+), 100 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index ba6bb400e..b1a2bd796 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -62,6 +62,7 @@ type MeterQueryRow = models.MeterQueryRow type PortalToken struct { AllowedMeterSlugs *[]string `json:"allowedMeterSlugs,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` + Expired *bool `json:"expired,omitempty"` ExpiresAt *time.Time `json:"expiresAt,omitempty"` Id *string `json:"id,omitempty"` Subject string `json:"subject"` @@ -845,60 +846,61 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl var swaggerSpec = []string{ "H4sIAAAAAAAC/+xb+3PTuLf/VzS6/AB3nWdbWPLLndAWyEJbtk2XBdrbVeyTRIstGUluGjr937+jh1+x", - "07jQDst8l+kwSWQdnfc5+ki+xj6PYs6AKYkH1zgmgkSgQJhv5tMoOBInYTLTPwQgfUFjRTnDAzxECaNf", + "0zrQDst8l+kwSWQdnfc5+ki+xj6PYs6AKYkH1zgmgkSgQJhv5tMoOBInYTLTPwQgfUFjRTnDAzxECaNf", "EkA0AKbolIJAUy6QmgMyU9vYw1Q/GRM1xx5mJAI8WCHrYQFfEiogwAMlEvCw9OcQEb3eIwFTPMD/08m5", "7NhR2ckI3Nx4+EsCYvlS8KjK5YkiQqGAKGgpGgGiDB2/3EVbW1vPNbcRUe0zNmJ+mEh6Ce0zljJtaOZc", "TzX1InN2Mh7gjDb2sFrG+mGpBGUF1l4JnsQvllXuRlPEuEIyBl8rMEAEScpmISAymwmYEQVoQcMQTQAJ", "UIlgEBglA/HnSCaTv8FXiLAAGeEWlAV80T5jf7mhvxCViCABEsQlBGimGUGTJbokYXKLtDPHcFFgqiAy", - "frEiZCY1EYIsc6FPLAtmas0SjsPvWmLMqyrdZ8E9mFvxbzb2e2OEE/oVNtvbyw2eSDLbaHYdWzrYBKgl", - "4lPzPXeeGATla/zDWHS9vIuc6aYRWJBzRfYxjeAjZzXyj+dgXU/7pWZeL58KYgz2lTNARKIAplRLTZkZ", - "Gw0Ph0jTRZow2iOKTIgE9HiuVDzodBaLRZsSRtpczDqaUEsTkk+0tSs61wRPx7tmQbNequtEQrBJR5lw", - "RT0FMCVJqB3k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fy6//TmUVWf3jWOyFXqA0+3Vl2iSJy0vnZbz89/efx/g4vsy5P/raF6XuM7IzYDqSBo", - "Vq/LlRfSObf1EJbwjYcvSUgDk272TcMwuMYCSHDEwuUaz17xKrvceU3tPQAFhmCZv3QP5vLjbVwaCsPC", - "86sNTxU0KXxPs1WGluRhc7BEhjbaK0xvENNG2HFtYOftiwlqxfPN5h1C1suwgbVGr9m+r/TMJILANGfv", - "iJojuIoFSB3nuv4juFKC+MpopoxXSDQVPCokeN06rDRhEag5D/AAP2q7j1kX9qhtPtR1YXUtQyN8K9da", - "t/fq6c7HZzs7w5fvh29e7/f6hx+6u78/f/naYFy3eqyH5bdDbDkL0fLC/KpLwf2nAROKCThL14BZNQZd", - "tafd+2+yIn7ULvbSNZwsShjLHVCKYmKQFn8shnsxgEqrbKg3EQ8glO0Dp/1mBYfHwIy9KM8/d+LPs44l", - "ZxiuZJjauC7IkEV3IqHGWdxe4OT0AHt49+j0cIw9PPzjFfbwwehQ/z/8E1cy/npphyXt3bfgvycglscg", - "DbZyvWYHl6GGGzO1JccXVUTRswBvQ6jPw4o3f/ZenNUIu7aIZYJVlPQt2XpNlcnXXNuwj6ttujGu26w2", - "qWDmyQJbLIkmIHI97rPgzqpXxLpiQxi3qHfLTplSkZU7JIbMSPcaJ+90HxmO+WdgNa1MGPIFBGZ53bvK", - "21H2iLKRHeytBIiHbSVyw9p2Nx72Bej9wHC9cjcWPriKqQD5PSRs8d5cYnOnrQlnp767tZZ2w5IdZOSy", - "FFWTUq8L3hQpuxMONURuGtoDRWgokSWIHutt5LNfu8+erABT5jE8wHMgAQjkIKWWLnNoTiRKclTOVuiz", - "Ehx0FYVn2IDiUhHmg4Ec2MD1iIOQ+yTs/HZwFPpKvvnj11ZX/+tp1SiiEokH292u3jMrU9yLyHKmEk3P", - "gY0mLgYTErREjj+vZH4nULVfmicRYS1tRbO3gqs4JMzWxRS6sLtXKosbc5erHAflZqS50s6qajsziqu6", - "bKbJqginxyOUoTkWIqMr6F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ICqfWNXVgHUBq6SNLv4CToj0rO6IS9Xd+Xti0eJb/85ahzDNysKcOzykK", + "+zCoTkmd1fes7jPrriz1s1lqXQx3KHP3b8EeOtWZc5Q9sxLV32rTmncmmTnypQHiIn+tUUDpTcowywzp", + "+3w59+Z9ivK9gLo7n0exvVVRyjRotKdzTU4MaXbs0GTZxpu80ZAtkApRJlyQYZpL2q49kl25H1Ln3w3g", + "qX+sR+Y/1rzhG3Nqj4uy9xGoOV2hbJYfv7i070D86sFbLZ0MunezXU/dcLY5hLciZBScSDfnN/8JAAD/", + "/4ge9ERvPwAA", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/client/go/client.gen.go b/api/client/go/client.gen.go index cb981f314..a3b348472 100644 --- a/api/client/go/client.gen.go +++ b/api/client/go/client.gen.go @@ -63,6 +63,7 @@ type MeterQueryRow = models.MeterQueryRow type PortalToken struct { AllowedMeterSlugs *[]string `json:"allowedMeterSlugs,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` + Expired *bool `json:"expired,omitempty"` ExpiresAt *time.Time `json:"expiresAt,omitempty"` Id *string `json:"id,omitempty"` Subject string `json:"subject"` @@ -2221,60 +2222,61 @@ func ParseInvalidatePortalTokensResponse(rsp *http.Response) (*InvalidatePortalT var swaggerSpec = []string{ "H4sIAAAAAAAC/+xb+3PTuLf/VzS6/AB3nWdbWPLLndAWyEJbtk2XBdrbVeyTRIstGUluGjr937+jh1+x", - "07jQDst8l+kwSWQdnfc5+ki+xj6PYs6AKYkH1zgmgkSgQJhv5tMoOBInYTLTPwQgfUFjRTnDAzxECaNf", + "0zrQDst8l+kwSWQdnfc5+ki+xj6PYs6AKYkH1zgmgkSgQJhv5tMoOBInYTLTPwQgfUFjRTnDAzxECaNf", "EkA0AKbolIJAUy6QmgMyU9vYw1Q/GRM1xx5mJAI8WCHrYQFfEiogwAMlEvCw9OcQEb3eIwFTPMD/08m5", "7NhR2ckI3Nx4+EsCYvlS8KjK5YkiQqGAKGgpGgGiDB2/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E/oV7ra3lxs8kWR2p9l1bOlgE6CW", + "iE/N99x5YhCUr/EPY9H18i5ypptGYEHOFdnHNIKPnNXIP56DdT3tl5p5vXwqiDHYV84AEYkCmFItNWVm", + "bDQ8HCJNF2nCaI8oMiES0OO5UvGg01ksFm1KGGlzMetoQi1NSD7R1q7oXBM8He+aBc16qa4TCcFdOsqE", + "K+opgClJQu0gp+Nd7GG4IlEc6knDCAT1SecQFhcfuPhc4zc3OgfKmDMJxvlfkOAYviQg1TvBJyFEx25U", + "D/qcKWAmqkgch9QnWrWd2D75y99S6/m6oQkdfctD2VIvSIAcFzr+Drl6yRMW/ECODrlChgfHz0hrOAKm", + "4EdzVeBE83bKSKLmXNCvP5SzIhuWLbiKwVc/mKmUCQRCcGFSh5unye5fplwEAdVzSPhO8BiEojo4piSU", + "sEpzN+RJYCZKdGKj3LKPfjs5OkQnlmcPxwVC1zqTk/UL2VakmrxAL4Nisgw5CdrFSL/GQSLMshe6huFe", + "Xy+pO58B7swhDHmhjnFb+7R6iCJO+XZsNWXu2kGkR9NMqSe5Eo4OEqkQCeYgACluql2/u/00rXaaRZZE", + "ePCpZFhj0PNioqqMejii7C2wmRah52GWhCGZ6Getcio1WnNVTImlwpf2iDbt28eQmhNlhbECSKS45jgr", + "t4mgm/NBgzvXN2YsmQ/v+L3ulATQ6vnPobUdPPVbv/af7bT8nb6/9fTZVi/Y8iu8VNaWPBE+3Lm+sfiV", + "0tVtMaf+HBHmXGtO4hgYlH0L6/aN+iA77kOru6KlloApCGA+NOAxBv8ShKQ2pmsqtB1Mva0YX7IUX5b3", + "TKG6fsoy4712twFDeadYZmbPfJukTuPaGceWXdL1B6lCS2Ox4EHig0CPsy1KoJtfa6QnZU79RCoegbig", + "wd0cmw6wqjsagVQkijUbizlY1rjvJ8KYJjduXdTqHrXMUr/b32p1e61ub9ztDcxfu9vtfSzavtiQbhgn", + "9fmmrPM061iFCgiJTt2KW8kEnVFGFGWzgpRlGUhML4TrI+pa5nz39wkbzbsIKr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7FonTKC+wmJHcvx7RRuv07zgP5QCazO", + "del+6I11lRBU7VGl/t0hTJMlcoBu2XnsQ6nzbFbhy1dVa0pnTSo75Onuz9pvu5H2ay9X/eOt59XnwFeg", + "ykappsJXoB7IJN2Hj8+0Wn2faX9YSNledG0FMzDlmkxsxu7FcN7DtddNHi0i7RtNya5/Np2WXoNu+nx6", + "V/zhXbt4uGI8Ca5Ux5eX5ow+Qw7sLvlCKiKU574ACzyHZHr2lNXTezTPQFtnrHhvpTswf+beipcN9FcG", + "sss3PW8GyrP35bxe/z5oLbgIA6/f/S5a/SJf26W9V8113p+iud0gYThbN+l6Ufbs2u73JH/ih+b+xm8b", + "/MwWtThR2bD1VaAm09uzpTX5ft2rPXe+1lNBF/9bSsG/qf3f1F6fCLabtPm3vVdwf8kkxZpNjJdQ5k/n", + "5iqgSzY2N9QmG3OEKdemFl0ICqfWNXVgHUBq6SNLv4CToj0rO6IS9Xd+Xti0eJb/85ahzDNysKcOzykK", + "+zCoTkmd1fes7jPrriz1s1lqXQx3KHP3b8EeOtWZc5Q9sxLV32rTmncmmTnypQHiIn+tUUDpTcowywzp", + "+3w59+Z9ivK9gLo7n0exvVVRyjRotKdzTU4MaXbs0GTZxpu80ZAtkApRJlyQYZpL2q49kl25H1Ln3w3g", + "qX+sR+Y/1rzhG3Nqj4uy9xGoOV2hbJYfv7i070D86sFbLZ0MunezXU/dcLY5hLciZBScSDfnN/8JAAD/", + "/4ge9ERvPwAA", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/openapi.yaml b/api/openapi.yaml index 5734af0a5..f8d9d3399 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -569,6 +569,9 @@ components: type: string format: date-time readOnly: true + expired: + type: boolean + readOnly: true createdAt: type: string format: date-time From 033431fea937ced2c546f85f106c822210091b32 Mon Sep 17 00:00:00 2001 From: Peter Marton Date: Thu, 14 Dec 2023 13:30:19 +0100 Subject: [PATCH 6/7] feat(portal): make token field non required --- api/api.gen.go | 107 ++++++++++++++++++------------------ api/client/go/client.gen.go | 107 ++++++++++++++++++------------------ api/openapi.yaml | 4 +- 3 files changed, 112 insertions(+), 106 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index b1a2bd796..71c7f71fd 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -60,13 +60,16 @@ type MeterQueryRow = models.MeterQueryRow // PortalToken defines model for PortalToken. type PortalToken struct { + // AllowedMeterSlugs Optional, if defined only the specified meters will be allowed AllowedMeterSlugs *[]string `json:"allowedMeterSlugs,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` Expired *bool `json:"expired,omitempty"` ExpiresAt *time.Time `json:"expiresAt,omitempty"` Id *string `json:"id,omitempty"` Subject string `json:"subject"` - Token *string `json:"token,omitempty"` + + // Token The token is only returned at creation. + Token *string `json:"token,omitempty"` } // Problem A Problem Details object (RFC 7807) @@ -846,61 +849,61 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl var swaggerSpec = []string{ "H4sIAAAAAAAC/+xb+3PTuLf/VzS6/AB3nWdbWPLLndAWyEJbtk2XBdrbVeyTRIstGUluGjr937+jh1+x", - "0zrQDst8l+kwSWQdnfc5+ki+xj6PYs6AKYkH1zgmgkSgQJhv5tMoOBInYTLTPwQgfUFjRTnDAzxECaNf", + "07jQDst8l+kwSWQdnfc5+ki+xj6PYs6AKYkH1zgmgkSgQJhv5tMoOBInYTLTPwQgfUFjRTnDAzxECaNf", "EkA0AKbolIJAUy6QmgMyU9vYw1Q/GRM1xx5mJAI8WCHrYQFfEiogwAMlEvCw9OcQEb3eIwFTPMD/08m5", "7NhR2ckI3Nx4+EsCYvlS8KjK5YkiQqGAKGgpGgGiDB2/3EVbW1vPNbcRUe0zNmJ+mEh6Ce0zljJtaOZc", "TzX1InN2Mh7gjDb2sFrG+mGpBGUF1l4JnsQvllXuRlPEuEIyBl8rMEAEScpmISAymwmYEQVoQcMQTQAJ", "UIlgEBglA/HnSCaTv8FXiLAAGeEWlAV80T5jf7mhvxCViCABEsQlBGimGUGTJbokYXKLtDPHcFFgqiAy", - "frEiZCY1EYIsc6FPLAtmas0SjsPvWmLMqyrdZ8E9mFvxbzb2e2OEE/oV7ra3lxs8kWR2p9l1bOlgE6CW", - "iE/N99x5YhCUr/EPY9H18i5ypptGYEHOFdnHNIKPnNXIP56DdT3tl5p5vXwqiDHYV84AEYkCmFItNWVm", - "bDQ8HCJNF2nCaI8oMiES0OO5UvGg01ksFm1KGGlzMetoQi1NSD7R1q7oXBM8He+aBc16qa4TCcFdOsqE", - "K+opgClJQu0gp+Nd7GG4IlEc6knDCAT1SecQFhcfuPhc4zc3OgfKmDMJxvlfkOAYviQg1TvBJyFEx25U", - "D/qcKWAmqkgch9QnWrWd2D75y99S6/m6oQkdfctD2VIvSIAcFzr+Drl6yRMW/ECODrlChgfHz0hrOAKm", - "4EdzVeBE83bKSKLmXNCvP5SzIhuWLbiKwVc/mKmUCQRCcGFSh5unye5fplwEAdVzSPhO8BiEojo4piSU", - "sEpzN+RJYCZKdGKj3LKPfjs5OkQnlmcPxwVC1zqTk/UL2VakmrxAL4Nisgw5CdrFSL/GQSLMshe6huFe", - "Xy+pO58B7swhDHmhjnFb+7R6iCJO+XZsNWXu2kGkR9NMqSe5Eo4OEqkQCeYgACluql2/u/00rXaaRZZE", - "ePCpZFhj0PNioqqMejii7C2wmRah52GWhCGZ6Getcio1WnNVTImlwpf2iDbt28eQmhNlhbECSKS45jgr", - "t4mgm/NBgzvXN2YsmQ/v+L3ulATQ6vnPobUdPPVbv/af7bT8nb6/9fTZVi/Y8iu8VNaWPBE+3Lm+sfiV", - "0tVtMaf+HBHmXGtO4hgYlH0L6/aN+iA77kOru6KlloApCGA+NOAxBv8ShKQ2pmsqtB1Mva0YX7IUX5b3", - "TKG6fsoy4712twFDeadYZmbPfJukTuPaGceWXdL1B6lCS2Ox4EHig0CPsy1KoJtfa6QnZU79RCoegbig", - "wd0cmw6wqjsagVQkijUbizlY1rjvJ8KYJjduXdT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vtQ6jx3q/Dlm7I1pbMmlR3ydPdn7bfdSPu1d7v+8dbz6nPgK1Blo1RT4StQD2SS7sPHZ1qtvs+0", + "PyykbC+6toIZlHRNJjZj92I47+Ha6yaPFoH+O03Jbp82nZbewm76fHpV/eFdu3i2YzwJrlTHl5fmikCG", + "HNhd8oVURCjPfQEWeA7B9Owhr6f3aJ6Bts5Y8dpMd2D+zLUZLxvorwxkd3963gyUZ6/reb3+fdBacBEG", + "Xr/7XbT6Rb62S3uvmtvEP0Vze4eE4WzdpOtF2bNru9+T/Ikfmvsbv+zwM1vU4kRlw9ZXgZpMb4+21uT7", + "dW8WbXyrqIIu/reUgn9T+7+pvT4RbDdp8297reH+kkmKNZsYL6HMn87NTUSXbGxuqE025tRUrk0tuhAU", + "Ds1r6sA6gNTSt6eyRZwU7VnZEZWov/PzwqbFqwQ/bxnKPCMHe+rwnKKwD4PqlNRZfc3rPrPuylI/m6XW", + "xXCHMnf9F+yhU505R9kzK1H9rTateWWTmSNfGiAu8rcqBZRe5AyzzJDekcm5N69zlO8F1F05Te/ilDIN", + "Gu3pXJMTQ5odOzRZtvFdXqjIFkiFKBMuyDDNJW3XHsmu3A+p8+8G8NQ/1iPzH2teMI45tcdF2esQ1Jyu", + "UDbLj19c2ncgfvXgrZZOBt272a6nbjjbHMJbETIKTqSb85v/BAAA///tjKLc7j8AAA==", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/client/go/client.gen.go b/api/client/go/client.gen.go index a3b348472..4e1f5a5f2 100644 --- a/api/client/go/client.gen.go +++ b/api/client/go/client.gen.go @@ -61,13 +61,16 @@ type MeterQueryRow = models.MeterQueryRow // PortalToken defines model for PortalToken. type PortalToken struct { + // AllowedMeterSlugs Optional, if defined only the specified meters will be allowed AllowedMeterSlugs *[]string `json:"allowedMeterSlugs,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` Expired *bool `json:"expired,omitempty"` ExpiresAt *time.Time `json:"expiresAt,omitempty"` Id *string `json:"id,omitempty"` Subject string `json:"subject"` - Token *string `json:"token,omitempty"` + + // Token The token is only returned at creation. + Token *string `json:"token,omitempty"` } // Problem A Problem Details object (RFC 7807) @@ -2222,61 +2225,61 @@ func ParseInvalidatePortalTokensResponse(rsp *http.Response) (*InvalidatePortalT var swaggerSpec = []string{ "H4sIAAAAAAAC/+xb+3PTuLf/VzS6/AB3nWdbWPLLndAWyEJbtk2XBdrbVeyTRIstGUluGjr937+jh1+x", - "0zrQDst8l+kwSWQdnfc5+ki+xj6PYs6AKYkH1zgmgkSgQJhv5tMoOBInYTLTPwQgfUFjRTnDAzxECaNf", + "07jQDst8l+kwSWQdnfc5+ki+xj6PYs6AKYkH1zgmgkSgQJhv5tMoOBInYTLTPwQgfUFjRTnDAzxECaNf", "EkA0AKbolIJAUy6QmgMyU9vYw1Q/GRM1xx5mJAI8WCHrYQFfEiogwAMlEvCw9OcQEb3eIwFTPMD/08m5", "7NhR2ckI3Nx4+EsCYvlS8KjK5YkiQqGAKGgpGgGiDB2/3EVbW1vPNbcRUe0zNmJ+mEh6Ce0zljJtaOZc", "TzX1InN2Mh7gjDb2sFrG+mGpBGUF1l4JnsQvllXuRlPEuEIyBl8rMEAEScpmISAymwmYEQVoQcMQTQAJ", "UIlgEBglA/HnSCaTv8FXiLAAGeEWlAV80T5jf7mhvxCViCABEsQlBGimGUGTJbokYXKLtDPHcFFgqiAy", - "frEiZCY1EYIsc6FPLAtmas0SjsPvWmLMqyrdZ8E9mFvxbzb2e2OEE/oV7ra3lxs8kWR2p9l1bOlgE6CW", - "iE/N99x5YhCUr/EPY9H18i5ypptGYEHOFdnHNIKPnNXIP56DdT3tl5p5vXwqiDHYV84AEYkCmFItNWVm", - "bDQ8HCJNF2nCaI8oMiES0OO5UvGg01ksFm1KGGlzMetoQi1NSD7R1q7oXBM8He+aBc16qa4TCcFdOsqE", - "K+opgClJQu0gp+Nd7GG4IlEc6knDCAT1SecQFhcfuPhc4zc3OgfKmDMJxvlfkOAYviQg1TvBJyFEx25U", -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YL6HMn87NTUSXbGxuqE025tRUrk0tuhAU", + "Ds1r6sA6gNTSt6eyRZwU7VnZEZWov/PzwqbFqwQ/bxnKPCMHe+rwnKKwD4PqlNRZfc3rPrPuylI/m6XW", + "xXCHMnf9F+yhU505R9kzK1H9rTateWWTmSNfGiAu8rcqBZRe5AyzzJDekcm5N69zlO8F1F05Te/ilDIN", + "Gu3pXJMTQ5odOzRZtvFdXqjIFkiFKBMuyDDNJW3XHsmu3A+p8+8G8NQ/1iPzH2teMI45tcdF2esQ1Jyu", + "UDbLj19c2ncgfvXgrZZOBt272a6nbjjbHMJbETIKTqSb85v/BAAA///tjKLc7j8AAA==", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/openapi.yaml b/api/openapi.yaml index f8d9d3399..cffbcd953 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -558,7 +558,6 @@ components: - subject - expiresAt - createdAt - - token properties: id: type: string @@ -577,10 +576,11 @@ components: format: date-time readOnly: true token: + description: The token is only returned at creation. type: string readOnly: true - # Optional, if defined only the specified meters will be allowed allowedMeterSlugs: + description: Optional, if defined only the specified meters will be allowed type: array minItems: 1 uniqueItems: true From d58c9a6882406583c33ac1cc9447d4513b8cc495 Mon Sep 17 00:00:00 2001 From: Peter Marton Date: Thu, 14 Dec 2023 13:55:05 +0100 Subject: [PATCH 7/7] feat(portal): default limit --- api/api.gen.go | 112 ++++++++++++++++++------------------ api/client/go/client.gen.go | 112 ++++++++++++++++++------------------ api/openapi.yaml | 3 +- 3 files changed, 114 insertions(+), 113 deletions(-) diff --git a/api/api.gen.go b/api/api.gen.go index 71c7f71fd..b49142bbd 100644 --- a/api/api.gen.go +++ b/api/api.gen.go @@ -848,62 +848,62 @@ func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handl // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+xb+3PTuLf/VzS6/AB3nWdbWPLLndAWyEJbtk2XBdrbVeyTRIstGUluG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PtX4zbXOgTLmTIJx/mckOIbPCUj1RvBJCNGxG9WD", + "PmcKmIkqEsch9YlWbSe2M3/5W2o9XzU0oaNveShb6hkJkONCx98hV895woLvyNEhV8jw4PgZaQ1HwBR8", + "b64KnGjeThlJ1JwL+uW7clZkw7IFlzH46jszlTKBQAguTOpw6zTZ/YuUiyCgeg0J3wgeg1BUB8eUhBJW", + "ae6GPAnMQolObJRb9tFvJ0eH6MTy7OG4QOhKZ3KyfiPbilSTF+htUEyWISdBuxjpVzhIhNn2o65huNfX", + "W+rOZ4A7cwhDXqhj3NY+rR6iiFO+HVtNmbt2EOnRNFPqRa6Eo4NEKkSCOQhAiptq1+9uP06rnWaRJREe", + "fCgZ1hj0vJioKqMejih7DWymReh5mCVhSCZ6rlVOpUZrroopsVT40h7Rpn07Dak5UVYYK4BEimuOs3Kb", + "CHp7PmiwcX9jxpL58I7f605JAK2e/xRa28Fjv/Vr/8lOy9/p+1uPn2z1gi2/wktlb8kT4cPG/Y3FL5Wu", + "bos59eeIMOdacxLHwKDsW1i3b9QH2XF/tLorWmoJmIIA5kMDHmPwL0BIamO6pkLbwdTbivElS/Flec8U", + "quunLDPea3cbMJR3imVm9synSeo0rp1xbNktXX+QKrQ0FgseJD4I9DA7ogS6+bVGelTm1E+k4hGIjzTY", + "zLHpAKu6oxFIRaJYs7GYg2WN+34ijGly49ZFre5Ryyz1u/2tVrfX6vbG3d7A/Gt3u733RdsXG9Jbxkl9", + "vinrPM06VqECQqJTt+JWMkFnlBFF2awgZVkGEtOPwvURdS1zfvr7gI3mXQSV3dStzF3lfDWVeviyNeMt", + "96WNb1tMCiMtGsVcKHvUNZl5RtU8mbR9HnV87eZmoezI4FNrxjsX/Y75wnBaPAlzBkdTPPiwqrzT16M9", + "9PCUUc04CcMlOrVn5NdwSX0+EySeU98MnHChtHlQlhrEI1sxFAhN678fuq2nw2e7e/vPX7z87dXB4Zvf", + "j0/Gf7z9893786v+4+sHVX16Vzgil6kPPN5adYkicdL60m09Pf/l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p+ZKO6uq7cworurimSarIpwej1CG", + "PFk4j64gfakkDSVoZqwVgLAab86YdUH1cjx+g+wE5PMA0AwYCINrTJYFXAOZO9O04W5sA+M/GX+Uqa2+", + "7cdppFuvnadPTWK0n6yzWe4pUzCzlc65X1XfBMk5F8pb9R2ZRBERyxW+TCtYVm+tQ2+ChIwb+ZwpQplE", + "xFi9ztbrt70xZDaZcyWBOSTI6igztZcGWrOCfGJWpSntTgvyTfe/hW7ZXdYjSb9AsTM/GB2ejvexh18e", + "nR5jD+8N3zXsx98W73DvTCAdTeAngqqluUmxWS0udx0TIALE89SMfy+ye31Tcs1obti5UrGlTNnUNNIh", + "9cHdRLnL1mFM/DmgvsGPExG6Ze6ql5hRc9nrlsrO69Hu/uHJfqvf7rbnKgoLgYSPYmAWTxm+GWEPZ/A3", + "7rW77W6LhPGctPt6iVYDiSke4K12t73l4AMjdIfEtHPRs5ig7a6hpgk+BiUoXAAKiQKpkCALe9I12Liu", + "DcYBRgEe4NdUKgutm43y5zcf6k8K+ZRO/ujl2ms2eczN1BUwxvTXGcZrIBjbabTX3IOHNKLldxtZduvp", + "fJZlt141t12fr1x297vdG+4fq/eOjQ57ZXSy+nykgki5242UM71k2zJWt00mQGf9Vb3Zwj0K2ERl/c2s", + "5lQR3bZ/cDzic91hcFnjd1ZqZ8aKp9nRzNdc8n3Gg+UN+i9g4re8A97PcPM19FoTovz5L19p4RssW35P", + "dl3xt+2aM9CrH9vi116We/LnebW5R+cTd1SrzTUH6dD9B6EFwxoEn+WpFHx3rEgn9frQ2TUnH5Sip2W9", + "2cEU22sWOLcLFqeqJt7bu49N65QR3E1I7FiOb6Zw82uee/SHSmB1rkrPU6+tq4Sgam9K9fcO4JoskcOT", + "y85jJ6XOc7sKX34pW1M6a1LZIU9Pf9Z+2420X/u264e3nlefA1+AKhulmgpfgLonk3TvPz7TavVtpv1u", + "IWV70bUVzKCkazKxGbsTw3n31143mVoE+m+1JHt92nRZ+gq76fz0qfr9u3bxbsd4Elyqji8vzBOBDDmw", + "p+SPUhGhPPcBWOA5BNOzl7yePqN5Bto6Y8VnM92B+WeezXjZQH9lIHv70/NmoDz7XM/r9e+C1oKLMPD6", + "3W+i1S/ytV06e9W8Jv4pmttbJAxn6yZdL8rmru1+T/IZ3zX3N/6xw89sUYsTlQ1bXwVqMr292lqT79f9", + "smjjr4oq6OL/Syn4J7X/k9rrE8F2kzb/pp813F0ySbFmE+MllPnDuXmJ6JKNzQ21ycbcmsq1qUUXgsKl", + "eU0dWAeQWvr2VraIk6I9KzuiEvV3msOmmcr6O94Ph6EW3xX8vDUpc5Mc+akDd4rC3g/EU1Jn9Tdfd5mC", + "V7b62Sy1LqA7lLm3wGBvoOrMOcrmrIT419q05vebiAaIZ52mDvri7znDLEGkT2Vyvs2vOsrPA+penqZP", + "ckoJB432dMrJiSHO0hcik2Ub3+Z3FdkGqQxlwgUZprmg7dqb2ZVnInWe3QCl+mF9Mf+y5nfGMaf21ij7", + "VQQ1lyyUzfJbGJf9HZZfvX+rpZMh+G61a60brjZ38VaEjIIT6fr8+n8BAAD//23528/1PwAA", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/client/go/client.gen.go b/api/client/go/client.gen.go index 4e1f5a5f2..213fa019d 100644 --- a/api/client/go/client.gen.go +++ b/api/client/go/client.gen.go @@ -2224,62 +2224,62 @@ func ParseInvalidatePortalTokensResponse(rsp *http.Response) (*InvalidatePortalT // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+xb+3PTuLf/VzS6/AB3nWdbWPLLndAWyEJbtk2XBdrbVeyTRIstGUluGjr937+jh1+x", - "07jQDst8l+kwSWQdnfc5+ki+xj6PYs6AKYkH1zgmgkSgQJhv5tMoOBInYTLTPwQgfUFjRTnDAzxECaNf", - "EkA0AKbolIJAUy6QmgMyU9vYw1Q/GRM1xx5mJAI8WCHrYQFfEiogwAMlEvCw9OcQEb3eIwFTPMD/08m5", - "7NhR2ckI3Nx4+EsCYvlS8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", + "ae6GPAnMQolObJRb9tFvJ0eH6MTy7OG4QOhKZ3KyfiPbilSTF+htUEyWISdBuxjpVzhIhNn2o65huNfX", + "W+rOZ4A7cwhDXqhj3NY+rR6iiFO+HVtNmbt2EOnRNFPqRa6Eo4NEKkSCOQhAiptq1+9uP06rnWaRJREe", + "fCgZ1hj0vJioKqMejih7DWymReh5mCVhSCZ6rlVOpUZrroopsVT40h7Rpn07Dak5UVYYK4BEimuOs3Kb", + "CHp7PmiwcX9jxpL58I7f605JAK2e/xRa28Fjv/Vr/8lOy9/p+1uPn2z1gi2/wktlb8kT4cPG/Y3FL5Wu", + "bos59eeIMOdacxLHwKDsW1i3b9QH2XF/tLorWmoJmIIA5kMDHmPwL0BIamO6pkLbwdTbivElS/Flec8U", + "quunLDPea3cbMJR3imVm9synSeo0rp1xbNktXX+QKrQ0FgseJD4I9DA7ogS6+bVGelTm1E+k4hGIjzTY", + "zLHpAKu6oxFIRaJYs7GYg2WN+34ijGly49ZFre5Ryyz1u/2tVrfX6vbG3d7A/Gt3u733RdsXG9Jbxkl9", + "vinrPM06VqECQqJTt+JWMkFnlBFF2awgZVkGEtOPwvURdS1zfvr7gI3mXQSV3dStzF3lfDWVeviyNeMt", + "96WNb1tMCiMtGsVcKHvUNZl5RtU8mbR9HnV87eZmoezI4FNrxjsX/Y75wnBaPAlzBkdTPPiwqrzT16M9", + "9PCUUc04CcMlOrVn5NdwSX0+EySeU98MnHChtHlQlhrEI1sxFAhN678fuq2nw2e7e/vPX7z87dXB4Zvf", + "j0/Gf7z9893786v+4+sHVX16Vzgil6kPPN5adYkicdL60m09Pf/l4X8GH7MPj/5dQ/W8xndGbAZSQdCs", + "XpcrL6RrbuohLOFrD1+QkAYm3eybhmFwhQWQ4IiFyzWeveJVdrvzmtp7AAoMwTJ/6RnM5cebuDQUhoX5", + "qw1PFTQpfE6zVYaW5GFzsESGNtorLG8Q00bYcW1g5+2LCWrF88PmLULWy7CBtUavOb6v9MwkgsA0Z2+I", + "miO4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70xZDaZcyWBOSTI6igztZcGWrOCfGJWpSntTgvyTfe/hW7ZXdYjSb9AsTM/GB2ejvexh18e", + "nR5jD+8N3zXsx98W73DvTCAdTeAngqqluUmxWS0udx0TIALE89SMfy+ye31Tcs1obti5UrGlTNnUNNIh", + "9cHdRLnL1mFM/DmgvsGPExG6Ze6ql5hRc9nrlsrO69Hu/uHJfqvf7rbnKgoLgYSPYmAWTxm+GWEPZ/A3", + "7rW77W6LhPGctPt6iVYDiSke4K12t73l4AMjdIfEtHPRs5ig7a6hpgk+BiUoXAAKiQKpkCALe9I12Liu", + "DcYBRgEe4NdUKgutm43y5zcf6k8K+ZRO/ujl2ms2eczN1BUwxvTXGcZrIBjbabTX3IOHNKLldxtZduvp", + "fJZlt141t12fr1x297vdG+4fq/eOjQ57ZXSy+nykgki5242UM71k2zJWt00mQGf9Vb3Zwj0K2ERl/c2s", + "5lQR3bZ/cDzic91hcFnjd1ZqZ8aKp9nRzNdc8n3Gg+UN+i9g4re8A97PcPM19FoTovz5L19p4RssW35P", + "dl3xt+2aM9CrH9vi116We/LnebW5R+cTd1SrzTUH6dD9B6EFwxoEn+WpFHx3rEgn9frQ2TUnH5Sip2W9", + "2cEU22sWOLcLFqeqJt7bu49N65QR3E1I7FiOb6Zw82uee/SHSmB1rkrPU6+tq4Sgam9K9fcO4JoskcOT", + "y85jJ6XOc7sKX34pW1M6a1LZIU9Pf9Z+2420X/u264e3nlefA1+AKhulmgpfgLonk3TvPz7TavVtpv1u", + "IWV70bUVzKCkazKxGbsTw3n31143mVoE+m+1JHt92nRZ+gq76fz0qfr9u3bxbsd4Elyqji8vzBOBDDmw", + "p+SPUhGhPPcBWOA5BNOzl7yePqN5Bto6Y8VnM92B+WeezXjZQH9lIHv70/NmoDz7XM/r9e+C1oKLMPD6", + "3W+i1S/ytV06e9W8Jv4pmttbJAxn6yZdL8rmru1+T/IZ3zX3N/6xw89sUYsTlQ1bXwVqMr292lqT79f9", + "smjjr4oq6OL/Syn4J7X/k9rrE8F2kzb/pp813F0ySbFmE+MllPnDuXmJ6JKNzQ21ycbcmsq1qUUXgsKl", + "eU0dWAeQWvr2VraIk6I9KzuiEvV3msOmmcr6O94Ph6EW3xX8vDUpc5Mc+akDd4rC3g/EU1Jn9Tdfd5mC", + "V7b62Sy1LqA7lLm3wGBvoOrMOcrmrIT419q05vebiAaIZ52mDvri7znDLEGkT2Vyvs2vOsrPA+penqZP", + "ckoJB432dMrJiSHO0hcik2Ub3+Z3FdkGqQxlwgUZprmg7dqb2ZVnInWe3QCl+mF9Mf+y5nfGMaf21ij7", + "VQQ1lyyUzfJbGJf9HZZfvX+rpZMh+G61a60brjZ38VaEjIIT6fr8+n8BAAD//23528/1PwAA", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/openapi.yaml b/api/openapi.yaml index cffbcd953..693040b4e 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -234,6 +234,7 @@ paths: type: integer minimum: 1 maximum: 100 + default: 25 responses: "200": description: OK @@ -257,7 +258,7 @@ paths: application/json: schema: type: object - description: If none of id or subject are specified, all tokens will be invalidated. + description: If no id or subject is specified, all tokens will be invalidated. properties: id: type: string