Skip to content

Commit

Permalink
Minor: open-metadata#14184 pass auth token for api documentation (ope…
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-madlani authored and Shiyang Xiao committed Dec 12, 2023
1 parent 4383e5b commit 4e1daa4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,26 @@
import React from 'react';
import {
GRAPH_BACKGROUND_COLOR,
oidcTokenKey,
PRIMERY_COLOR,
TEXT_BODY_COLOR,
} from '../../constants/constants';
import RapiDocReact from './RapiDocReact';
import './swagger.less';

const SwaggerPage = () => {
const idToken = localStorage.getItem(oidcTokenKey);

return (
<div
className="container-fluid"
data-testid="fluid-container"
id="doc-container">
<RapiDocReact
allow-spec-file-download
persist-auth
api-key-location="header"
api-key-name="Authorization"
api-key-value={`Bearer ${idToken}`}
font-size="large"
nav-bg-color={GRAPH_BACKGROUND_COLOR}
nav-item-spacing="compact"
Expand Down

0 comments on commit 4e1daa4

Please sign in to comment.