Skip to content

Commit

Permalink
deploy: 4784644
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Jun 20, 2024
1 parent 81586f3 commit 90ba253
Show file tree
Hide file tree
Showing 16 changed files with 332 additions and 0 deletions.
Binary file added openapi/sts-api/1.0.0/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added openapi/sts-api/1.0.0/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions openapi/sts-api/1.0.0/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after
{
box-sizing: inherit;
}

body
{
margin:0;
background: #fafafa;
}
</style>
</head>

<body>
<div id="swagger-ui"></div>

<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function() {
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
configUrl: "swagger-config.json",
dom_id: '#swagger-ui'
})
// End Swagger UI call region

window.ui = ui
}
</script>
</body>
</html>
104 changes: 104 additions & 0 deletions openapi/sts-api/1.0.0/sts-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
openapi: 3.0.1
info:
title: sts-api
description: REST API documentation for the sts-api
version: 1.0.0
servers:
- url: /
paths:
/token:
post:
tags:
- Secure Token Service Api
operationId: token
requestBody:
content:
application/x-www-form-urlencoded:
schema:
required:
- audience
- client_id
- client_secret
- grant_type
type: object
properties:
audience:
type: string
description: Audience for the SI token
example: null
bearer_access_scope:
type: string
description: Scope to be added in the VP token
example: null
client_id:
type: string
description: Id of the client requesting an SI token
example: null
client_secret:
type: string
description: Secret of the client requesting an SI token
example: null
grant_type:
type: string
description: "Type of grant: must be set to client_credentials"
example: null
token:
type: string
description: VP token to be added as a claim in the SI token
example: null
example: null
encoding:
audience:
style: form
bearer_access_scope:
style: form
client_id:
style: form
client_secret:
style: form
grant_type:
style: form
token:
style: form
responses:
"200":
description: The Self-Issued ID token
content:
application/json:
schema:
$ref: "#/components/schemas/StsTokenResponse"
"400":
description: Invalid Request
content:
application/json:
schema:
type: array
example: null
items:
$ref: "#/components/schemas/StsTokenErrorResponse"
components:
schemas:
StsTokenErrorResponse:
type: object
properties:
error:
type: string
example: null
error_description:
type: string
example: null
example: null
StsTokenResponse:
type: object
properties:
access_token:
type: string
example: null
expires_in:
type: integer
format: int64
example: null
token_type:
type: string
example: null
example: null
1 change: 1 addition & 0 deletions openapi/sts-api/1.0.0/swagger-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"url":"sts-api.yaml","deepLinking":true}
3 changes: 3 additions & 0 deletions openapi/sts-api/1.0.0/swagger-ui-bundle.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions openapi/sts-api/1.0.0/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions openapi/sts-api/1.0.0/swagger-ui.css

Large diffs are not rendered by default.

Binary file added openapi/sts-api/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added openapi/sts-api/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions openapi/sts-api/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after
{
box-sizing: inherit;
}

body
{
margin:0;
background: #fafafa;
}
</style>
</head>

<body>
<div id="swagger-ui"></div>

<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function() {
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
configUrl: "swagger-config.json",
dom_id: '#swagger-ui'
})
// End Swagger UI call region

window.ui = ui
}
</script>
</body>
</html>
104 changes: 104 additions & 0 deletions openapi/sts-api/sts-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
openapi: 3.0.1
info:
title: sts-api
description: REST API documentation for the sts-api
version: 1.0.0
servers:
- url: /
paths:
/token:
post:
tags:
- Secure Token Service Api
operationId: token
requestBody:
content:
application/x-www-form-urlencoded:
schema:
required:
- audience
- client_id
- client_secret
- grant_type
type: object
properties:
audience:
type: string
description: Audience for the SI token
example: null
bearer_access_scope:
type: string
description: Scope to be added in the VP token
example: null
client_id:
type: string
description: Id of the client requesting an SI token
example: null
client_secret:
type: string
description: Secret of the client requesting an SI token
example: null
grant_type:
type: string
description: "Type of grant: must be set to client_credentials"
example: null
token:
type: string
description: VP token to be added as a claim in the SI token
example: null
example: null
encoding:
audience:
style: form
bearer_access_scope:
style: form
client_id:
style: form
client_secret:
style: form
grant_type:
style: form
token:
style: form
responses:
"200":
description: The Self-Issued ID token
content:
application/json:
schema:
$ref: "#/components/schemas/StsTokenResponse"
"400":
description: Invalid Request
content:
application/json:
schema:
type: array
example: null
items:
$ref: "#/components/schemas/StsTokenErrorResponse"
components:
schemas:
StsTokenErrorResponse:
type: object
properties:
error:
type: string
example: null
error_description:
type: string
example: null
example: null
StsTokenResponse:
type: object
properties:
access_token:
type: string
example: null
expires_in:
type: integer
format: int64
example: null
token_type:
type: string
example: null
example: null
1 change: 1 addition & 0 deletions openapi/sts-api/swagger-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"url":"sts-api.yaml","deepLinking":true}
3 changes: 3 additions & 0 deletions openapi/sts-api/swagger-ui-bundle.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions openapi/sts-api/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions openapi/sts-api/swagger-ui.css

Large diffs are not rendered by default.

0 comments on commit 90ba253

Please sign in to comment.