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 4, 2022
1 parent 5fbb294 commit 976f40b
Show file tree
Hide file tree
Showing 10 changed files with 291 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 @@ -255,6 +255,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 @@ -270,8 +281,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
3 changes: 3 additions & 0 deletions consent/manager_mock_test.go

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

1 change: 1 addition & 0 deletions internal/httpclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ Class | Method | HTTP request | Description
*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
30 changes: 30 additions & 0 deletions internal/httpclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,36 @@ 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 976f40b

Please sign in to comment.