Skip to content

Commit

Permalink
ci: feat(adr): Microservice authentication using E2EE (#935)
Browse files Browse the repository at this point in the history
Signed-off-by: edgex-jenkins <collab-it+edgex@linuxfoundation.org>
  • Loading branch information
edgex-jenkins committed Dec 4, 2023
1 parent efb5024 commit 53a4f7e
Show file tree
Hide file tree
Showing 38 changed files with 5,476 additions and 332 deletions.
2 changes: 1 addition & 1 deletion 3.2/api/core/Ch-APICoreCommand/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2679,7 +2679,7 @@ <h1 id="core-command">Core Command</h1>
dimmer light.</li>
</ul>
<h2 id="swagger">Swagger</h2>
<p><iframe class="swagger-ui-iframe" frameborder="0" id="d5103733" src="swagger-d5103733.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
<p><iframe class="swagger-ui-iframe" frameborder="0" id="51fa2ebf" src="swagger-51fa2ebf.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
</article>
</div>
</div>
Expand Down
120 changes: 120 additions & 0 deletions 3.2/api/core/Ch-APICoreCommand/swagger-51fa2ebf.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="../../../assets/stylesheets/swagger-ui.css" />
<link rel="stylesheet" type="text/css" id="slate-css" media="none" href="../../../assets/stylesheets/swagger-ui-dark.css" />

</head>

<body style="overflow:hidden;background: ;">
<div id="swagger-ui"></div>
<script src="../../../assets/javascripts/swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="../../../assets/javascripts/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function () {
window.ui = SwaggerUIBundle({
dom_id: "#swagger-ui",
onComplete: onComplete,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],

url: "https://github.com/raw/edgexfoundry/edgex-go/main/openapi/v3/core-command.yaml",


"oauth2RedirectUrl": new URL("../../../assets/swagger-ui/oauth2-redirect.html",window.location.href).href,

"validatorUrl": "none",

"docExpansion": "list",
"filter": false,
"tryItOutEnabled": false,
"supportedSubmitMethods": [
"get",
"put",
"post",
"delete",
"options",
"head",
"patch",
"trace"
],
"validatorUrl": "none",
"extra_css": [],
"dark_scheme_name": "slate",
"syntaxHighlight.theme": "agate"

})



const scheme = parent.scheme
if (scheme === "slate") {
enable_dark_mode();
}
}

enable_dark_mode = function(){
document.getElementById("slate-css").media = ""
}

disable_dark_mode = function(){
document.getElementById("slate-css").media = "none"
}

const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("51fa2ebf");
});

// start observing for resizing
resize_ob.observe(document.querySelector("body"));

// authorize modal position
var modal_top = 0;

const mutation_ob = new MutationObserver(function (mutations) {
if(mutations && mutations[0].addedNodes && mutations[0].addedNodes.length > 0){
update_modal_top()
}
});

onComplete = function(){
// start observing for auth-wrapper after Swagger UI loaded
const div = document.querySelector("div.auth-wrapper");
if(div){
mutation_ob.observe(div, {
childList: true,
});
}
}

update_top_val = function(top){
modal_top = top
update_modal_top()
}

update_modal_top = function(){
let modal_list = document.getElementsByClassName('modal-ux')
if(modal_list.length > 0){
let modal = modal_list.item(0)
const modal_height = modal.offsetHeight
const padding = 60
min = parseInt(modal_height/2 + padding)
max = document.body.scrollHeight - min + padding
if (modal_top < min) {
modal.style.top = `${min}px`
} else if (modal_top > max) {
modal.style.top = `${max}px`
} else {
modal.style.top = `${modal_top}px`
}
}
}
</script>
</body>

</html>
2 changes: 1 addition & 1 deletion 3.2/api/core/Ch-APICoreMetadata/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,7 @@ <h1 id="core-metadata">Core Metadata</h1>
device provisioning service deposits and manages device metadata through
this service's API. See <a href="../../../microservices/core/metadata/Purpose/">Core Metadata</a> for more details about this service.</p>
<h2 id="swagger">Swagger</h2>
<p><iframe class="swagger-ui-iframe" frameborder="0" id="84573039" src="swagger-84573039.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
<p><iframe class="swagger-ui-iframe" frameborder="0" id="e8aad68c" src="swagger-e8aad68c.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
</article>
</div>
</div>
Expand Down
120 changes: 120 additions & 0 deletions 3.2/api/core/Ch-APICoreMetadata/swagger-e8aad68c.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="../../../assets/stylesheets/swagger-ui.css" />
<link rel="stylesheet" type="text/css" id="slate-css" media="none" href="../../../assets/stylesheets/swagger-ui-dark.css" />

</head>

<body style="overflow:hidden;background: ;">
<div id="swagger-ui"></div>
<script src="../../../assets/javascripts/swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="../../../assets/javascripts/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function () {
window.ui = SwaggerUIBundle({
dom_id: "#swagger-ui",
onComplete: onComplete,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],

url: "https://github.com/raw/edgexfoundry/edgex-go/main/openapi/v3/core-metadata.yaml",


"oauth2RedirectUrl": new URL("../../../assets/swagger-ui/oauth2-redirect.html",window.location.href).href,

"validatorUrl": "none",

"docExpansion": "list",
"filter": false,
"tryItOutEnabled": false,
"supportedSubmitMethods": [
"get",
"put",
"post",
"delete",
"options",
"head",
"patch",
"trace"
],
"validatorUrl": "none",
"extra_css": [],
"dark_scheme_name": "slate",
"syntaxHighlight.theme": "agate"

})



const scheme = parent.scheme
if (scheme === "slate") {
enable_dark_mode();
}
}

enable_dark_mode = function(){
document.getElementById("slate-css").media = ""
}

disable_dark_mode = function(){
document.getElementById("slate-css").media = "none"
}

const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("e8aad68c");
});

// start observing for resizing
resize_ob.observe(document.querySelector("body"));

// authorize modal position
var modal_top = 0;

const mutation_ob = new MutationObserver(function (mutations) {
if(mutations && mutations[0].addedNodes && mutations[0].addedNodes.length > 0){
update_modal_top()
}
});

onComplete = function(){
// start observing for auth-wrapper after Swagger UI loaded
const div = document.querySelector("div.auth-wrapper");
if(div){
mutation_ob.observe(div, {
childList: true,
});
}
}

update_top_val = function(top){
modal_top = top
update_modal_top()
}

update_modal_top = function(){
let modal_list = document.getElementsByClassName('modal-ux')
if(modal_list.length > 0){
let modal = modal_list.item(0)
const modal_height = modal.offsetHeight
const padding = 60
min = parseInt(modal_height/2 + padding)
max = document.body.scrollHeight - min + padding
if (modal_top < min) {
modal.style.top = `${min}px`
} else if (modal_top > max) {
modal.style.top = `${max}px`
} else {
modal.style.top = `${modal_top}px`
}
}
}
</script>
</body>

</html>
2 changes: 1 addition & 1 deletion 3.2/api/devices/Ch-APIDeviceSDK/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2665,7 +2665,7 @@ <h1 id="device-services">Device Services</h1>
<p>The EdgeX Foundry Device Service Software Development Kit (SDK) takes the Developer through the step-by-step process to create an EdgeX Foundry Device Service microservice. See <a href="../../../microservices/device/sdk/Purpose/">Device Service SDK</a> for more details on this SDK.</p>
<p>The Device Service SDK provides a RESTful API that all Device Services inherit from the SDK.</p>
<h2 id="swagger">Swagger</h2>
<p><iframe class="swagger-ui-iframe" frameborder="0" id="5f7d7424" src="swagger-5f7d7424.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
<p><iframe class="swagger-ui-iframe" frameborder="0" id="1e185988" src="swagger-1e185988.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
</article>
</div>
</div>
Expand Down
120 changes: 120 additions & 0 deletions 3.2/api/devices/Ch-APIDeviceSDK/swagger-1e185988.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="../../../assets/stylesheets/swagger-ui.css" />
<link rel="stylesheet" type="text/css" id="slate-css" media="none" href="../../../assets/stylesheets/swagger-ui-dark.css" />

</head>

<body style="overflow:hidden;background: ;">
<div id="swagger-ui"></div>
<script src="../../../assets/javascripts/swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="../../../assets/javascripts/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function () {
window.ui = SwaggerUIBundle({
dom_id: "#swagger-ui",
onComplete: onComplete,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],

url: "https://github.com/raw/edgexfoundry/device-sdk-go/main/openapi/v3/device-sdk.yaml",


"oauth2RedirectUrl": new URL("../../../assets/swagger-ui/oauth2-redirect.html",window.location.href).href,

"validatorUrl": "none",

"docExpansion": "list",
"filter": false,
"tryItOutEnabled": false,
"supportedSubmitMethods": [
"get",
"put",
"post",
"delete",
"options",
"head",
"patch",
"trace"
],
"validatorUrl": "none",
"extra_css": [],
"dark_scheme_name": "slate",
"syntaxHighlight.theme": "agate"

})



const scheme = parent.scheme
if (scheme === "slate") {
enable_dark_mode();
}
}

enable_dark_mode = function(){
document.getElementById("slate-css").media = ""
}

disable_dark_mode = function(){
document.getElementById("slate-css").media = "none"
}

const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("1e185988");
});

// start observing for resizing
resize_ob.observe(document.querySelector("body"));

// authorize modal position
var modal_top = 0;

const mutation_ob = new MutationObserver(function (mutations) {
if(mutations && mutations[0].addedNodes && mutations[0].addedNodes.length > 0){
update_modal_top()
}
});

onComplete = function(){
// start observing for auth-wrapper after Swagger UI loaded
const div = document.querySelector("div.auth-wrapper");
if(div){
mutation_ob.observe(div, {
childList: true,
});
}
}

update_top_val = function(top){
modal_top = top
update_modal_top()
}

update_modal_top = function(){
let modal_list = document.getElementsByClassName('modal-ux')
if(modal_list.length > 0){
let modal = modal_list.item(0)
const modal_height = modal.offsetHeight
const padding = 60
min = parseInt(modal_height/2 + padding)
max = document.body.scrollHeight - min + padding
if (modal_top < min) {
modal.style.top = `${min}px`
} else if (modal_top > max) {
modal.style.top = `${max}px`
} else {
modal.style.top = `${modal_top}px`
}
}
}
</script>
</body>

</html>
Loading

0 comments on commit 53a4f7e

Please sign in to comment.