Skip to content

Commit

Permalink
preserve auth in swagger ui
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienR1 committed Oct 24, 2023
1 parent b8556ef commit 0e22846
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions swagger/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,31 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="SwaggerUI"
/>
<meta name="description" content="SwaggerUI" />
<title>Substreams Sink Clickhouse - SwaggerUI</title>
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@latest/swagger-ui.css" />
<link href="/favicon.png" rel="icon" type="image/x-icon">
<link href="/favicon.png" rel="icon" type="image/x-icon" />
</head>
<body>
<div id="swagger-ui"></div>
<script src="https://unpkg.com/swagger-ui-dist@latest/swagger-ui-bundle.js" crossorigin></script>
<script src="https://unpkg.com/swagger-ui-dist@latest/swagger-ui-standalone-preset.js" crossorigin></script>
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
url: '/openapi',
dom_id: '#swagger-ui',
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
layout: "StandaloneLayout",
});
};
</script>
<div id="swagger-ui"></div>
<script
src="https://unpkg.com/swagger-ui-dist@latest/swagger-ui-bundle.js"
crossorigin
></script>
<script
src="https://unpkg.com/swagger-ui-dist@latest/swagger-ui-standalone-preset.js"
crossorigin
></script>
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
url: "/openapi",
dom_id: "#swagger-ui",
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
layout: "StandaloneLayout",
persistAuthorization: true,
});
};
</script>
</body>
</html>
</html>

0 comments on commit 0e22846

Please sign in to comment.