Skip to content

Commit

Permalink
Moved session invalidation resource form /sessions to /identities
Browse files Browse the repository at this point in the history
  • Loading branch information
harnash committed Sep 15, 2021
1 parent 8e7c0e3 commit 713447e
Show file tree
Hide file tree
Showing 8 changed files with 368 additions and 368 deletions.
2 changes: 1 addition & 1 deletion internal/httpclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ Class | Method | HTTP request | Description
*V0alpha1Api* | [**AdminCreateIdentity**](docs/V0alpha1Api.md#admincreateidentity) | **Post** /identities | Create an Identity
*V0alpha1Api* | [**AdminCreateSelfServiceRecoveryLink**](docs/V0alpha1Api.md#admincreateselfservicerecoverylink) | **Post** /recovery/link | Create a Recovery Link
*V0alpha1Api* | [**AdminDeleteIdentity**](docs/V0alpha1Api.md#admindeleteidentity) | **Delete** /identities/{id} | Delete an Identity
*V0alpha1Api* | [**AdminDeleteIdentitySessions**](docs/V0alpha1Api.md#admindeleteidentitysessions) | **Delete** /identity/{id}/sessions | Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity.
*V0alpha1Api* | [**AdminGetIdentity**](docs/V0alpha1Api.md#admingetidentity) | **Get** /identities/{id} | Get an Identity
*V0alpha1Api* | [**AdminListIdentities**](docs/V0alpha1Api.md#adminlistidentities) | **Get** /identities | List Identities
*V0alpha1Api* | [**AdminLogoutIdentity**](docs/V0alpha1Api.md#adminlogoutidentity) | **Delete** /sessions/identity/{id} | Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity.
*V0alpha1Api* | [**AdminUpdateIdentity**](docs/V0alpha1Api.md#adminupdateidentity) | **Put** /identities/{id} | Update an Identity
*V0alpha1Api* | [**CreateSelfServiceLogoutFlowUrlForBrowsers**](docs/V0alpha1Api.md#createselfservicelogoutflowurlforbrowsers) | **Get** /self-service/logout/browser | Create a Logout URL for Browsers
*V0alpha1Api* | [**GetJsonSchema**](docs/V0alpha1Api.md#getjsonschema) | **Get** /schemas/{id} |
Expand Down
100 changes: 50 additions & 50 deletions internal/httpclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,56 @@ paths:
summary: Update an Identity
tags:
- v0alpha1
/identity/{id}/sessions:
delete:
description: |-
This endpoint is useful for:
To forcefully logout Identity from all devices and sessions
operationId: adminDeleteIdentitySessions
parameters:
- description: ID is the identity's ID.
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 typically 201.
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/jsonError'
description: jsonError
"401":
content:
application/json:
schema:
$ref: '#/components/schemas/jsonError'
description: jsonError
"404":
content:
application/json:
schema:
$ref: '#/components/schemas/jsonError'
description: jsonError
"500":
content:
application/json:
schema:
$ref: '#/components/schemas/jsonError'
description: jsonError
security:
- oryAccessToken: []
summary: Calling this endpoint irrecoverably and permanently deletes and invalidates
all sessions that belong to the given Identity.
tags:
- v0alpha1
/metrics/prometheus:
get:
description: |-
Expand Down Expand Up @@ -1803,56 +1853,6 @@ paths:
summary: Get Verification Flow
tags:
- v0alpha1
/sessions/identity/{id}:
delete:
description: |-
This endpoint is useful for:
To forcefully logout Identity from all devices and sessions
operationId: adminLogoutIdentity
parameters:
- description: ID is the identity's ID.
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 typically 201.
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/jsonError'
description: jsonError
"401":
content:
application/json:
schema:
$ref: '#/components/schemas/jsonError'
description: jsonError
"404":
content:
application/json:
schema:
$ref: '#/components/schemas/jsonError'
description: jsonError
"500":
content:
application/json:
schema:
$ref: '#/components/schemas/jsonError'
description: jsonError
security:
- oryAccessToken: []
summary: Calling this endpoint irrecoverably and permanently deletes and invalidates
all sessions that belong to the given Identity.
tags:
- v0alpha1
/sessions/whoami:
get:
description: |-
Expand Down
Loading

0 comments on commit 713447e

Please sign in to comment.