From ea115971c617869aff2a110bf51f754b019453ab Mon Sep 17 00:00:00 2001 From: aeneasr Date: Fri, 24 Apr 2020 14:14:04 +0000 Subject: [PATCH] autogen(openapi): Regenerate swagger spec and internal client --- .schema/api.swagger.json | 97 +++++++++++++++---- .../models/accept_consent_request.go | 2 +- .../httpclient/models/accept_login_request.go | 2 +- .../httpclient/models/completed_request.go | 2 +- .../models/consent_request_session.go | 2 +- .../flush_inactive_o_auth2_tokens_request.go | 3 +- .../models/health_not_ready_status.go | 2 +- internal/httpclient/models/json_web_key.go | 2 +- .../httpclient/models/json_web_key_set.go | 2 +- .../json_web_key_set_generator_request.go | 2 +- internal/httpclient/models/login_request.go | 2 +- internal/httpclient/models/logout_request.go | 2 +- .../models/o_auth2_token_introspection.go | 2 +- .../models/oauth2_token_response.go | 2 +- .../models/open_id_connect_context.go | 2 +- .../models/previous_consent_session.go | 3 +- internal/httpclient/models/reject_request.go | 2 +- .../httpclient/models/userinfo_response.go | 2 +- internal/httpclient/models/well_known.go | 2 +- 19 files changed, 99 insertions(+), 36 deletions(-) diff --git a/.schema/api.swagger.json b/.schema/api.swagger.json index 8e67c687f7..aea5279599 100755 --- a/.schema/api.swagger.json +++ b/.schema/api.swagger.json @@ -1818,7 +1818,7 @@ "title": "JSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger." }, "JSONWebKey": { - "description": "It is important that this model object is named JSONWebKey for\n\"swagger generate spec\" to generate only on definition of a\nJSONWebKey.", + "description": "JSONWebKey JSONWebKey It is important that this model object is named JSONWebKey for\n\"swagger generate spec\" to generate only on definition of a\nJSONWebKey.", "type": "object", "required": [ "use", @@ -1833,26 +1833,32 @@ "example": "RS256" }, "crv": { + "description": "crv", "type": "string", "example": "P-256" }, "d": { + "description": "d", "type": "string", "example": "T_N8I-6He3M8a7X1vWt6TGIx4xB_GP3Mb4SsZSA4v-orvJzzRiQhLlRR81naWYxfQAYt5isDI6_C2L9bdWo4FFPjGQFvNoRX-_sBJyBI_rl-TBgsZYoUlAj3J92WmY2inbA-PwyJfsaIIDceYBC-eX-xiCu6qMqkZi3MwQAFL6bMdPEM0z4JBcwFT3VdiWAIRUuACWQwrXMq672x7fMuaIaHi7XDGgt1ith23CLfaREmJku9PQcchbt_uEY-hqrFY6ntTtS4paWWQj86xLL94S-Tf6v6xkL918PfLSOTq6XCzxvlFwzBJqApnAhbwqLjpPhgUG04EDRrqrSBc5Y1BLevn6Ip5h1AhessBp3wLkQgz_roeckt-ybvzKTjESMuagnpqLvOT7Y9veIug2MwPJZI2VjczRc1vzMs25XrFQ8DpUy-bNdp89TmvAXwctUMiJdgHloJw23Cv03gIUAkDnsTqZmkpbIf-crpgNKFmQP_EDKoe8p_PXZZgfbRri3NoEVGP7Mk6yEu8LjJhClhZaBNjuWw2-KlBfOA3g79mhfBnkInee5KO9mGR50qPk1V-MorUYNTFMZIm0kFE6eYVWFBwJHLKYhHU34DoiK1VP-svZpC2uAMFNA_UJEwM9CQ2b8qe4-5e9aywMvwcuArRkAB5mBIfOaOJao3mfukKAE" }, "dp": { + "description": "dp", "type": "string", "example": "G4sPXkc6Ya9y8oJW9_ILj4xuppu0lzi_H7VTkS8xj5SdX3coE0oimYwxIi2emTAue0UOa5dpgFGyBJ4c8tQ2VF402XRugKDTP8akYhFo5tAA77Qe_NmtuYZc3C3m3I24G2GvR5sSDxUyAN2zq8Lfn9EUms6rY3Ob8YeiKkTiBj0" }, "dq": { + "description": "dq", "type": "string", "example": "s9lAH9fggBsoFR8Oac2R_E2gw282rT2kGOAhvIllETE1efrA6huUUvMfBcMpn8lqeW6vzznYY5SSQF7pMdC_agI3nG8Ibp1BUb0JUiraRNqUfLhcQb_d9GF4Dh7e74WbRsobRonujTYN1xCaP6TO61jvWrX-L18txXw494Q_cgk" }, "e": { + "description": "e", "type": "string", "example": "AQAB" }, "k": { + "description": "k", "type": "string", "example": "GawgguFyGrWKav7AX4VKUg" }, @@ -1867,18 +1873,22 @@ "example": "RSA" }, "n": { + "description": "n", "type": "string", "example": "vTqrxUyQPl_20aqf5kXHwDZrel-KovIp8s7ewJod2EXHl8tWlRB3_Rem34KwBfqlKQGp1nqah-51H4Jzruqe0cFP58hPEIt6WqrvnmJCXxnNuIB53iX_uUUXXHDHBeaPCSRoNJzNysjoJ30TIUsKBiirhBa7f235PXbKiHducLevV6PcKxJ5cY8zO286qJLBWSPm-OIevwqsIsSIH44Qtm9sioFikhkbLwoqwWORGAY0nl6XvVOlhADdLjBSqSAeT1FPuCDCnXwzCDR8N9IFB_IjdStFkC-rVt2K5BYfPd0c3yFp_vHR15eRd0zJ8XQ7woBC8Vnsac6Et1pKS59pX6256DPWu8UDdEOolKAPgcd_g2NpA76cAaF_jcT80j9KrEzw8Tv0nJBGesuCjPNjGs_KzdkWTUXt23Hn9QJsdc1MZuaW0iqXBepHYfYoqNelzVte117t4BwVp0kUM6we0IqyXClaZgOI8S-WDBw2_Ovdm8e5NmhYAblEVoygcX8Y46oH6bKiaCQfKCFDMcRgChme7AoE1yZZYsPbaG_3IjPrC4LBMHQw8rM9dWjJ8ImjicvZ1pAm0dx-KHCP3y5PVKrxBDf1zSOsBRkOSjB8TPODnJMz6-jd5hTtZxpZPwPoIdCanTZ3ZD6uRBpTmDwtpRGm63UQs1m5FWPwb0T2IF0" }, "p": { + "description": "p", "type": "string", "example": "6NbkXwDWUhi-eR55Cgbf27FkQDDWIamOaDr0rj1q0f1fFEz1W5A_09YvG09Fiv1AO2-D8Rl8gS1Vkz2i0zCSqnyy8A025XOcRviOMK7nIxE4OH_PEsko8dtIrb3TmE2hUXvCkmzw9EsTF1LQBOGC6iusLTXepIC1x9ukCKFZQvdgtEObQ5kzd9Nhq-cdqmSeMVLoxPLd1blviVT9Vm8-y12CtYpeJHOaIDtVPLlBhJiBoPKWg3vxSm4XxIliNOefqegIlsmTIa3MpS6WWlCK3yHhat0Q-rRxDxdyiVdG_wzJvp0Iw_2wms7pe-PgNPYvUWH9JphWP5K38YqEBiJFXQ" }, "q": { + "description": "q", "type": "string", "example": "0A1FmpOWR91_RAWpqreWSavNaZb9nXeKiBo0DQGBz32DbqKqQ8S4aBJmbRhJcctjCLjain-ivut477tAUMmzJwVJDDq2MZFwC9Q-4VYZmFU4HJityQuSzHYe64RjN-E_NQ02TWhG3QGW6roq6c57c99rrUsETwJJiwS8M5p15Miuz53DaOjv-uqqFAFfywN5WkxHbraBcjHtMiQuyQbQqkCFh-oanHkwYNeytsNhTu2mQmwR5DR2roZ2nPiFjC6nsdk-A7E3S3wMzYYFw7jvbWWoYWo9vB40_MY2Y0FYQSqcDzcBIcq_0tnnasf3VW4Fdx6m80RzOb2Fsnln7vKXAQ" }, "qi": { + "description": "qi", "type": "string", "example": "GyM_p6JrXySiz1toFgKbWV-JdI3jQ4ypu9rbMWx3rQJBfmt0FoYzgUIZEVFEcOqwemRN81zoDAaa-Bk0KWNGDjJHZDdDmFhW3AN7lI-puxk_mHZGJ11rxyR8O55XLSe3SPmRfKwZI6yU24ZxvQKFYItdldUKGzO6Ia6zTKhAVRU" }, @@ -1888,6 +1898,7 @@ "example": "sig" }, "x": { + "description": "x", "type": "string", "example": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU" }, @@ -1899,13 +1910,14 @@ } }, "y": { + "description": "y", "type": "string", "example": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0" } } }, "JSONWebKeySet": { - "description": "It is important that this model object is named JSONWebKeySet for\n\"swagger generate spec\" to generate only on definition of a\nJSONWebKeySet. Since one with the same name is previously defined as\nclient.Client.JSONWebKeys and this one is last, this one will be\neffectively written in the swagger spec.", + "description": "JSONWebKeySet JSONWebKeySet It is important that this model object is named JSONWebKeySet for\n\"swagger generate spec\" to generate only on definition of a\nJSONWebKeySet. Since one with the same name is previously defined as\nclient.Client.JSONWebKeys and this one is last, this one will be\neffectively written in the swagger spec.", "type": "object", "properties": { "keys": { @@ -1926,20 +1938,30 @@ "title": "NullTime implements sql.NullTime functionality." }, "PreviousConsentSession": { - "description": "The response used to return used consent requests\nsame as HandledLoginRequest, just with consent_request exposed as json", + "description": "PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession The response used to return used consent requests\nsame as HandledLoginRequest, just with consent_request exposed as json", "type": "object", "properties": { "consent_request": { "$ref": "#/definitions/consentRequest" }, "grant_access_token_audience": { - "$ref": "#/definitions/StringSlicePipeDelimiter" + "description": "GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`.", + "type": "array", + "items": { + "type": "string" + } }, "grant_scope": { - "$ref": "#/definitions/StringSlicePipeDelimiter" + "description": "GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`", + "type": "array", + "items": { + "type": "string" + } }, "handled_at": { - "$ref": "#/definitions/NullTime" + "description": "handled at\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time", + "type": "string", + "format": "date-time" }, "remember": { "description": "Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same\nclient asks the same user for the same, or a subset of, scope.", @@ -1964,12 +1986,20 @@ }, "acceptConsentRequest": { "type": "object", - "title": "The request payload used to accept a consent request.", + "title": "AcceptConsentRequest The request payload used to accept a consent request.", "properties": { "grant_access_token_audience": { + "type": "array", + "items": { + "type": "string" + }, "$ref": "#/definitions/StringSlicePipeDelimiter" }, "grant_scope": { + "type": "array", + "items": { + "type": "string" + }, "$ref": "#/definitions/StringSlicePipeDelimiter" }, "handled_at": { @@ -2024,7 +2054,7 @@ }, "completedRequest": { "type": "object", - "title": "The response payload sent when accepting or rejecting a login or consent request.", + "title": "CompletedRequest CompletedRequest The response payload sent when accepting or rejecting a login or consent request.", "properties": { "redirect_to": { "description": "RedirectURL is the URL which you should redirect the user to once the authentication process is completed.", @@ -2066,9 +2096,19 @@ "type": "string" }, "requested_access_token_audience": { + "description": "requested access token audience", + "type": "array", + "items": { + "type": "string" + }, "$ref": "#/definitions/StringSlicePipeDelimiter" }, "requested_scope": { + "description": "requested scope", + "type": "array", + "items": { + "type": "string" + }, "$ref": "#/definitions/StringSlicePipeDelimiter" }, "skip": { @@ -2083,7 +2123,7 @@ }, "consentRequestSession": { "type": "object", - "title": "Used to pass session data to a consent request.", + "title": "ConsentRequestSession ConsentRequestSession Used to pass session data to a consent request.", "properties": { "access_token": { "description": "AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the\nrefresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection.\nIf only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties\ncan access that endpoint as well, sensitive data from the session might be exposed to them. Use with care!", @@ -2102,10 +2142,11 @@ } }, "flushInactiveOAuth2TokensRequest": { + "description": "FlushInactiveOAuth2TokensRequest FlushInactiveOAuth2TokensRequest flush inactive o auth2 tokens request", "type": "object", "properties": { "notAfter": { - "description": "NotAfter sets after which point tokens should not be flushed. This is useful when you want to keep a history\nof recently issued tokens for auditing.", + "description": "NotAfter sets after which point tokens should not be flushed. This is useful when you want to keep a history\nof recently issued tokens for auditing.\nFormat: date-time\nFormat: date-time", "type": "string", "format": "date-time" } @@ -2143,6 +2184,7 @@ } }, "healthNotReadyStatus": { + "description": "HealthNotReadyStatus HealthNotReadyStatus HealthNotReadyStatus health not ready status", "type": "object", "properties": { "errors": { @@ -2167,8 +2209,8 @@ "type": "object", "required": [ "alg", - "use", - "kid" + "kid", + "use" ], "properties": { "alg": { @@ -2187,7 +2229,7 @@ }, "loginRequest": { "type": "object", - "title": "Contains information on an ongoing login request.", + "title": "LoginRequest LoginRequest Contains information on an ongoing login request.", "properties": { "challenge": { "description": "Challenge is the identifier (\"login challenge\") of the login request. It is used to\nidentify the session.", @@ -2204,9 +2246,17 @@ "type": "string" }, "requested_access_token_audience": { + "type": "array", + "items": { + "type": "string" + }, "$ref": "#/definitions/StringSlicePipeDelimiter" }, "requested_scope": { + "type": "array", + "items": { + "type": "string" + }, "$ref": "#/definitions/StringSlicePipeDelimiter" }, "session_id": { @@ -2376,7 +2426,7 @@ "oAuth2TokenIntrospection": { "description": "https://tools.ietf.org/html/rfc7662", "type": "object", - "title": "Introspection contains an access token's session data as specified by IETF RFC 7662, see:", + "title": "OAuth2TokenIntrospection Introspection contains an access token's session data as specified by IETF RFC 7662, see:", "required": [ "active" ], @@ -2445,33 +2495,39 @@ } }, "oauth2TokenResponse": { - "description": "The Access Token Response", + "description": "Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse The Access Token Response", "type": "object", "properties": { "access_token": { + "description": "access token", "type": "string" }, "expires_in": { + "description": "expires in", "type": "integer", "format": "int64" }, "id_token": { + "description": "id token", "type": "string" }, "refresh_token": { + "description": "refresh token", "type": "string" }, "scope": { + "description": "scope", "type": "string" }, "token_type": { + "description": "token type", "type": "string" } } }, "openIDConnectContext": { "type": "object", - "title": "Contains optional information about the OpenID Connect request.", + "title": "OpenIDConnectContext OpenIDConnectContext Contains optional information about the OpenID Connect request.", "properties": { "acr_values": { "description": "ACRValues is the Authentication AuthorizationContext Class Reference requested in the OAuth 2.0 Authorization request.\nIt is a parameter defined by OpenID Connect and expresses which level of authentication (e.g. 2FA) is required.\n\nOpenID Connect defines it as follows:\n\u003e Requested Authentication AuthorizationContext Class Reference values. Space-separated string that specifies the acr values\nthat the Authorization Server is being requested to use for processing this Authentication Request, with the\nvalues appearing in order of preference. The Authentication AuthorizationContext Class satisfied by the authentication\nperformed is returned as the acr Claim Value, as specified in Section 2. The acr Claim is requested as a\nVoluntary Claim by this parameter.", @@ -2506,21 +2562,26 @@ }, "rejectRequest": { "type": "object", - "title": "The request payload used to accept a login or consent request.", + "title": "RejectRequest The request payload used to accept a login or consent request.", "properties": { "error": { + "description": "error", "type": "string" }, "error_debug": { + "description": "error debug", "type": "string" }, "error_description": { + "description": "error description", "type": "string" }, "error_hint": { + "description": "error hint", "type": "string" }, "status_code": { + "description": "status code", "type": "integer", "format": "int64" } @@ -2621,7 +2682,7 @@ "wellKnown": { "description": "It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms\namong others.", "type": "object", - "title": "WellKnown represents important OpenID Connect discovery metadata", + "title": "WellKnown WellKnown represents important OpenID Connect discovery metadata", "required": [ "issuer", "authorization_endpoint", diff --git a/internal/httpclient/models/accept_consent_request.go b/internal/httpclient/models/accept_consent_request.go index ec9e202d3a..b64cc2fe9e 100644 --- a/internal/httpclient/models/accept_consent_request.go +++ b/internal/httpclient/models/accept_consent_request.go @@ -11,7 +11,7 @@ import ( "github.com/go-openapi/swag" ) -// AcceptConsentRequest The request payload used to accept a consent request. +// AcceptConsentRequest AcceptConsentRequest The request payload used to accept a consent request. // // swagger:model acceptConsentRequest type AcceptConsentRequest struct { diff --git a/internal/httpclient/models/accept_login_request.go b/internal/httpclient/models/accept_login_request.go index e353110d1f..4eae3c7ccc 100644 --- a/internal/httpclient/models/accept_login_request.go +++ b/internal/httpclient/models/accept_login_request.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/validate" ) -// AcceptLoginRequest AcceptLoginRequest HandledLoginRequest is the request payload used to accept a login request. +// AcceptLoginRequest HandledLoginRequest is the request payload used to accept a login request. // // swagger:model acceptLoginRequest type AcceptLoginRequest struct { diff --git a/internal/httpclient/models/completed_request.go b/internal/httpclient/models/completed_request.go index f6339e9b93..b7e059946f 100644 --- a/internal/httpclient/models/completed_request.go +++ b/internal/httpclient/models/completed_request.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/swag" ) -// CompletedRequest CompletedRequest The response payload sent when accepting or rejecting a login or consent request. +// CompletedRequest CompletedRequest CompletedRequest The response payload sent when accepting or rejecting a login or consent request. // // swagger:model completedRequest type CompletedRequest struct { diff --git a/internal/httpclient/models/consent_request_session.go b/internal/httpclient/models/consent_request_session.go index c691196657..84b5968638 100644 --- a/internal/httpclient/models/consent_request_session.go +++ b/internal/httpclient/models/consent_request_session.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/swag" ) -// ConsentRequestSession ConsentRequestSession Used to pass session data to a consent request. +// ConsentRequestSession ConsentRequestSession ConsentRequestSession Used to pass session data to a consent request. // // swagger:model consentRequestSession type ConsentRequestSession struct { diff --git a/internal/httpclient/models/flush_inactive_o_auth2_tokens_request.go b/internal/httpclient/models/flush_inactive_o_auth2_tokens_request.go index c33b44a9e6..5093e99057 100644 --- a/internal/httpclient/models/flush_inactive_o_auth2_tokens_request.go +++ b/internal/httpclient/models/flush_inactive_o_auth2_tokens_request.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/validate" ) -// FlushInactiveOAuth2TokensRequest FlushInactiveOAuth2TokensRequest flush inactive o auth2 tokens request +// FlushInactiveOAuth2TokensRequest FlushInactiveOAuth2TokensRequest FlushInactiveOAuth2TokensRequest flush inactive o auth2 tokens request // // swagger:model flushInactiveOAuth2TokensRequest type FlushInactiveOAuth2TokensRequest struct { @@ -21,6 +21,7 @@ type FlushInactiveOAuth2TokensRequest struct { // of recently issued tokens for auditing. // Format: date-time // Format: date-time + // Format: date-time NotAfter strfmt.DateTime `json:"notAfter,omitempty"` } diff --git a/internal/httpclient/models/health_not_ready_status.go b/internal/httpclient/models/health_not_ready_status.go index 11a4e99920..90e2c66a91 100644 --- a/internal/httpclient/models/health_not_ready_status.go +++ b/internal/httpclient/models/health_not_ready_status.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/swag" ) -// HealthNotReadyStatus HealthNotReadyStatus HealthNotReadyStatus health not ready status +// HealthNotReadyStatus HealthNotReadyStatus HealthNotReadyStatus HealthNotReadyStatus health not ready status // // swagger:model healthNotReadyStatus type HealthNotReadyStatus struct { diff --git a/internal/httpclient/models/json_web_key.go b/internal/httpclient/models/json_web_key.go index c40b04cb28..f28c3215c6 100644 --- a/internal/httpclient/models/json_web_key.go +++ b/internal/httpclient/models/json_web_key.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/validate" ) -// JSONWebKey JSONWebKey It is important that this model object is named JSONWebKey for +// JSONWebKey JSONWebKey JSONWebKey It is important that this model object is named JSONWebKey for // "swagger generate spec" to generate only on definition of a // JSONWebKey. // diff --git a/internal/httpclient/models/json_web_key_set.go b/internal/httpclient/models/json_web_key_set.go index 87dfb0b251..db63b4317c 100644 --- a/internal/httpclient/models/json_web_key_set.go +++ b/internal/httpclient/models/json_web_key_set.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/swag" ) -// JSONWebKeySet JSONWebKeySet It is important that this model object is named JSONWebKeySet for +// JSONWebKeySet JSONWebKeySet JSONWebKeySet It is important that this model object is named JSONWebKeySet for // "swagger generate spec" to generate only on definition of a // JSONWebKeySet. Since one with the same name is previously defined as // client.Client.JSONWebKeys and this one is last, this one will be diff --git a/internal/httpclient/models/json_web_key_set_generator_request.go b/internal/httpclient/models/json_web_key_set_generator_request.go index 94e43b2b60..37144b9e72 100644 --- a/internal/httpclient/models/json_web_key_set_generator_request.go +++ b/internal/httpclient/models/json_web_key_set_generator_request.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/validate" ) -// JSONWebKeySetGeneratorRequest JSONWebKeySetGeneratorRequest JSONWebKeySetGeneratorRequest json web key set generator request +// JSONWebKeySetGeneratorRequest json web key set generator request // // swagger:model jsonWebKeySetGeneratorRequest type JSONWebKeySetGeneratorRequest struct { diff --git a/internal/httpclient/models/login_request.go b/internal/httpclient/models/login_request.go index a589bca84f..41818055da 100644 --- a/internal/httpclient/models/login_request.go +++ b/internal/httpclient/models/login_request.go @@ -11,7 +11,7 @@ import ( "github.com/go-openapi/swag" ) -// LoginRequest LoginRequest Contains information on an ongoing login request. +// LoginRequest LoginRequest LoginRequest Contains information on an ongoing login request. // // swagger:model loginRequest type LoginRequest struct { diff --git a/internal/httpclient/models/logout_request.go b/internal/httpclient/models/logout_request.go index 9745a7090f..13c8550e98 100644 --- a/internal/httpclient/models/logout_request.go +++ b/internal/httpclient/models/logout_request.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/swag" ) -// LogoutRequest LogoutRequest LogoutRequest Contains information about an ongoing logout request. +// LogoutRequest Contains information about an ongoing logout request. // // swagger:model logoutRequest type LogoutRequest struct { diff --git a/internal/httpclient/models/o_auth2_token_introspection.go b/internal/httpclient/models/o_auth2_token_introspection.go index c2667fba65..7b23901982 100644 --- a/internal/httpclient/models/o_auth2_token_introspection.go +++ b/internal/httpclient/models/o_auth2_token_introspection.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/validate" ) -// OAuth2TokenIntrospection Introspection contains an access token's session data as specified by IETF RFC 7662, see: +// OAuth2TokenIntrospection OAuth2TokenIntrospection Introspection contains an access token's session data as specified by IETF RFC 7662, see: // // https://tools.ietf.org/html/rfc7662 // diff --git a/internal/httpclient/models/oauth2_token_response.go b/internal/httpclient/models/oauth2_token_response.go index 47b0806ed1..41589a2c3c 100644 --- a/internal/httpclient/models/oauth2_token_response.go +++ b/internal/httpclient/models/oauth2_token_response.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/swag" ) -// Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse The Access Token Response +// Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse Oauth2TokenResponse The Access Token Response // // swagger:model oauth2TokenResponse type Oauth2TokenResponse struct { diff --git a/internal/httpclient/models/open_id_connect_context.go b/internal/httpclient/models/open_id_connect_context.go index 8282af5ddc..ac3e47488c 100644 --- a/internal/httpclient/models/open_id_connect_context.go +++ b/internal/httpclient/models/open_id_connect_context.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/swag" ) -// OpenIDConnectContext OpenIDConnectContext Contains optional information about the OpenID Connect request. +// OpenIDConnectContext OpenIDConnectContext OpenIDConnectContext Contains optional information about the OpenID Connect request. // // swagger:model openIDConnectContext type OpenIDConnectContext struct { diff --git a/internal/httpclient/models/previous_consent_session.go b/internal/httpclient/models/previous_consent_session.go index 4928fb1e6d..513c6e4c24 100644 --- a/internal/httpclient/models/previous_consent_session.go +++ b/internal/httpclient/models/previous_consent_session.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/validate" ) -// PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession The response used to return used consent requests +// PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession The response used to return used consent requests // same as HandledLoginRequest, just with consent_request exposed as json // // swagger:model PreviousConsentSession @@ -51,6 +51,7 @@ type PreviousConsentSession struct { // Format: date-time // Format: date-time // Format: date-time + // Format: date-time HandledAt strfmt.DateTime `json:"handled_at,omitempty"` // Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same diff --git a/internal/httpclient/models/reject_request.go b/internal/httpclient/models/reject_request.go index bb75c9a11a..c44a2107d8 100644 --- a/internal/httpclient/models/reject_request.go +++ b/internal/httpclient/models/reject_request.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/swag" ) -// RejectRequest The request payload used to accept a login or consent request. +// RejectRequest RejectRequest The request payload used to accept a login or consent request. // // swagger:model rejectRequest type RejectRequest struct { diff --git a/internal/httpclient/models/userinfo_response.go b/internal/httpclient/models/userinfo_response.go index 34b1468d99..9b5fb8685f 100644 --- a/internal/httpclient/models/userinfo_response.go +++ b/internal/httpclient/models/userinfo_response.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/swag" ) -// UserinfoResponse UserinfoResponse The userinfo response +// UserinfoResponse The userinfo response // // swagger:model userinfoResponse type UserinfoResponse struct { diff --git a/internal/httpclient/models/well_known.go b/internal/httpclient/models/well_known.go index 7b5a6bcfea..7fda8b0d26 100644 --- a/internal/httpclient/models/well_known.go +++ b/internal/httpclient/models/well_known.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/validate" ) -// WellKnown WellKnown represents important OpenID Connect discovery metadata +// WellKnown WellKnown WellKnown represents important OpenID Connect discovery metadata // // It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms // among others.