- Notifications
You must be signed in to change notification settings - Fork927
feat: add endpoints to oauth2 provider apps response#11718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import {type Interpolation, type Theme,useTheme } from "@emotion/react"; | ||
import CopyIcon from "@mui/icons-material/FileCopyOutlined"; | ||
import KeyboardArrowLeft from "@mui/icons-material/KeyboardArrowLeft"; | ||
import Divider from "@mui/material/Divider"; | ||
@@ -139,16 +139,28 @@ export const EditOAuth2AppPageView: FC<EditOAuth2AppProps> = ({ | ||
onCancel={() => setShowDelete(false)} | ||
/> | ||
<dl css={styles.dataList}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Big fan of the definition list usage | ||
<dt>Client ID</dt> | ||
<dd> | ||
<CopyableValue value={app.id}> | ||
{app.id} <CopyIcon css={{ width: 16, height: 16 }} /> | ||
</CopyableValue> | ||
</dd> | ||
<dt>Authorization URL</dt> | ||
<dd> | ||
<CopyableValue value={app.endpoints.authorization}> | ||
{app.endpoints.authorization}{" "} | ||
<CopyIcon css={{ width: 16, height: 16 }} /> | ||
</CopyableValue> | ||
</dd> | ||
<dt>Token URL</dt> | ||
<dd> | ||
<CopyableValue value={app.endpoints.token}> | ||
{app.endpoints.token}{" "} | ||
<CopyIcon css={{ width: 16, height: 16 }} /> | ||
</CopyableValue> | ||
</dd> | ||
</dl> | ||
<Divider css={{ borderColor: theme.palette.divider }} /> | ||
@@ -303,3 +315,16 @@ const OAuth2SecretRow: FC<OAuth2SecretRowProps> = ({ | ||
</TableRow> | ||
); | ||
}; | ||
const styles = { | ||
dataList: { | ||
display: "grid", | ||
gridTemplateColumns: "max-content auto", | ||
"& > dt": { | ||
fontWeight: "bold", | ||
}, | ||
"& > dd": { | ||
marginLeft: 10, | ||
}, | ||
}, | ||
} satisfies Record<string, Interpolation<Theme>>; |