Skip to content

Latest commit

 

History

History
97 lines (77 loc) · 4.5 KB

revocation.md

File metadata and controls

97 lines (77 loc) · 4.5 KB

Revocation

Endpoint: /connect/revocation

Revocation Request

The client constructs the request by including the following parameters using the "application/x-www-form-urlencoded" format in the HTTP request entity-body:

client_id

REQUIRED. The client identifier issued to the client during the registration process described by Section 2.2.

client_secret

REQUIRED. The client secret. The client MAY omit the parameter if the client secret is an empty string.

token_type_hint

OPTIONAL. A hint about the type of the token submitted for revocation. Clients MAY pass this parameter in order to help the authorization server to optimize the token lookup. If the server is unable to locate the token using the given hint, it MUST extend its search across all of its supported token types. An authorization server MAY ignore this parameter, particularly if it is able to detect the token type automatically. This specification defines three such values:
access_token
revokes the all refresh_tokens that have references to the subject for the calling client.
refresh_token
revokes the all refresh_tokens that have references to the subject for the calling client.
subject
revokes the all refresh_tokens that have references to the subject for the calling client.

token

REQUIRED. This is one of the 3 token types.
access_token
refresh_token
subject

revoke_all_subjects

OPTIONAL. When set to true, this will revoke across all clients withing a shared namespace.

Example

I use Postman

POST http://localhost:21354/connect/revocation

Headers:
    	Content-Type:application/x-www-form-urlencoded

Body:
  client_id:arbitrary-resource-owner-client
  client_secret:secret
  token_type_hint:refresh_token
  token:CfDJ8KHr4bbINrxKkapSXCyORFXzz0UeSHGsDGePP6W2dw9JcDxPruU2pS5QfSc4ewtI5sq5poz2scfUH9dhnfpYuoPIdfFKmCQEpPARa8-ejMwUzXRZKhm6zO0GVT4ru0FTkku-iHb5mip1APQlmfDYcSULWzuoC8r9PhYtqAE39HT-n93nWGkL9LllR7cG7Z9HWDWEgZKUikQqJTk5nvicL0Q
  revoke_all_subjects:true
POST http://localhost:21354/connect/revocation

Headers:
    	Content-Type:application/x-www-form-urlencoded

Body:
  client_id:arbitrary-resource-owner-client
  client_secret:secret
  token_type_hint:subject
  token:PorkyPig
  revoke_all_subjects:true
POST http://localhost:21354/connect/revocation

Headers:
   	Content-Type:application/x-www-form-urlencoded

Body:
 client_id:arbitrary-resource-owner-client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