Skip to content

Commit

Permalink
fix: generate sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
aarmam committed Nov 1, 2022
1 parent 41474ba commit af42dee
Show file tree
Hide file tree
Showing 9 changed files with 290 additions and 368 deletions.
14 changes: 12 additions & 2 deletions consent/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,17 @@ func (h *Handler) revokeOAuth2LoginSessions(w http.ResponseWriter, r *http.Reque
w.WriteHeader(http.StatusNoContent)
}

// Revoke OAuth 2.0 Consent Login Sessions Parameters
//
// swagger:parameters revokeOAuth2LoginSession
type revokeOAuth2LoginSession struct {
// The id of the OAuth 2.0 Login session.
//
// in: path
// required: true
ID string `json:"id"`
}

// swagger:route DELETE /oauth2/auth/sessions/login/{id} oAuth2 revokeOAuth2LoginSession
//
// # Revokes OAuth 2.0 Login Sessions of by session id
Expand All @@ -287,8 +298,7 @@ func (h *Handler) revokeOAuth2LoginSessions(w http.ResponseWriter, r *http.Reque
//
// Responses:
// 204: emptyResponse
// 400: jsonError
// 500: jsonError
// default: errorOAuth2
func (h *Handler) revokeOAuth2LoginSession(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
var loginSessionId = ps.ByName("id")

Expand Down
1 change: 1 addition & 0 deletions internal/httpclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ All URIs are relative to _http://localhost_
| _OAuth2Api_ | [**RejectOAuth2LoginRequest**](docs/OAuth2Api.md#rejectoauth2loginrequest) | **Put** /admin/oauth2/auth/requests/login/reject | Reject OAuth 2.0 Login Request |
| _OAuth2Api_ | [**RejectOAuth2LogoutRequest**](docs/OAuth2Api.md#rejectoauth2logoutrequest) | **Put** /admin/oauth2/auth/requests/logout/reject | Reject OAuth 2.0 Session Logout Request |
| _OAuth2Api_ | [**RevokeOAuth2ConsentSessions**](docs/OAuth2Api.md#revokeoauth2consentsessions) | **Delete** /admin/oauth2/auth/sessions/consent | Revoke OAuth 2.0 Consent Sessions of a Subject |
| _OAuth2Api_ | [**RevokeOAuth2LoginSession**](docs/OAuth2Api.md#revokeoauth2loginsession) | **Delete** /oauth2/auth/sessions/login/{id} | Revokes OAuth 2.0 Login Sessions of by session id |
| _OAuth2Api_ | [**RevokeOAuth2LoginSessions**](docs/OAuth2Api.md#revokeoauth2loginsessions) | **Delete** /admin/oauth2/auth/sessions/login | Revokes All OAuth 2.0 Login Sessions of a Subject |
| _OAuth2Api_ | [**RevokeOAuth2Token**](docs/OAuth2Api.md#revokeoauth2token) | **Post** /oauth2/revoke | Revoke OAuth 2.0 Access or Refresh Token |
| _OAuth2Api_ | [**SetOAuth2Client**](docs/OAuth2Api.md#setoauth2client) | **Put** /admin/clients/{id} | Set OAuth 2.0 Client |
Expand Down
36 changes: 36 additions & 0 deletions internal/httpclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1616,6 +1616,42 @@ paths:
summary: OAuth 2.0 Authorize Endpoint
tags:
- oAuth2
/oauth2/auth/sessions/login/{id}:
delete:
description: "This endpoint invalidates an authentication session by
session\
\ id. After revoking the authentication session, the\nsubject has to
re-authenticate\
\ at ORY Hydra for this device/browser. This endpoint does not
invalidate\
\ any tokens\nand does not work with OpenID Connect Front- or
Back-channel\
\ logout."
operationId: revokeOAuth2LoginSession
parameters:
- description: The id of the OAuth 2.0 Login session.
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"204":
description: "Empty responses are sent when, for example, resources
are\
\ deleted. The HTTP status code for empty responses is\ntypically
201."
default:
content:
application/json:
schema:
$ref: "#/components/schemas/errorOAuth2"
description: errorOAuth2
summary: Revokes OAuth 2.0 Login Sessions of by session id
tags:
- oAuth2
/oauth2/register:
post:
description: |-
Expand Down
101 changes: 101 additions & 0 deletions internal/httpclient/api_o_auth2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Loading

0 comments on commit af42dee

Please sign in to comment.