Skip to content

Commit

Permalink
Add API specs for OpenID Connect APIs (#84129)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson authored Feb 17, 2022
1 parent 555b754 commit 19346e7
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"security.oidc_authenticate":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-oidc-authenticate.html",
"description":"Exchanges an OpenID Connection authentication response message for an Elasticsearch access token and refresh token pair"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
"path":"/_security/oidc/authenticate",
"methods":[
"POST"
]
}
]
},
"body":{
"description":"The OpenID Connect response to authenticate",
"required":true
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"security.oidc_logout":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-oidc-logout.html",
"description":"Invalidates a refresh token and access token that was generated from the OpenID Connect Authenticate API"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
"path":"/_security/oidc/logout",
"methods":[
"POST"
]
}
]
},
"body":{
"description":"Access token and refresh token to invalidate",
"required":true
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"security.oidc_prepare_authentication":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-oidc-prepare-authentication.html",
"description":"Creates an OAuth 2.0 authentication request as a URL string"
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
"path":"/_security/oidc/prepare",
"methods":[
"POST"
]
}
]
},
"body":{
"description":"The OpenID Connect authentication realm configuration",
"required":true
}
}
}

0 comments on commit 19346e7

Please sign in to comment.