mirror of
https://github.com/logto-io/logto.git
synced 2025-03-10 22:22:45 -05:00
feat(console): display jwks uri on application details page (#7007)
This commit is contained in:
parent
91cfed99cb
commit
0b785ee0d8
4 changed files with 29 additions and 8 deletions
6
.changeset/purple-glasses-fix.md
Normal file
6
.changeset/purple-glasses-fix.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
"@logto/console": minor
|
||||
"@logto/phrases": minor
|
||||
---
|
||||
|
||||
feat(console): display jwks uri on application details page
|
|
@ -1,2 +1,3 @@
|
|||
export const openIdProviderConfigPath = 'oidc/.well-known/openid-configuration';
|
||||
export const openIdProviderPath = 'oidc';
|
||||
export const openIdProviderJwksPath = 'oidc/jwks';
|
||||
|
|
|
@ -15,7 +15,11 @@ import CaretUp from '@/assets/icons/caret-up.svg?react';
|
|||
import CirclePlus from '@/assets/icons/circle-plus.svg?react';
|
||||
import Plus from '@/assets/icons/plus.svg?react';
|
||||
import FormCard from '@/components/FormCard';
|
||||
import { openIdProviderConfigPath, openIdProviderPath } from '@/consts/oidc';
|
||||
import {
|
||||
openIdProviderConfigPath,
|
||||
openIdProviderJwksPath,
|
||||
openIdProviderPath,
|
||||
} from '@/consts/oidc';
|
||||
import { AppDataContext } from '@/contexts/AppDataProvider';
|
||||
import Button from '@/ds-components/Button';
|
||||
import CopyToClipboard from '@/ds-components/CopyToClipboard';
|
||||
|
@ -117,13 +121,22 @@ function EndpointsAndCredentials({
|
|||
</FormField>
|
||||
)}
|
||||
{tenantEndpoint && (
|
||||
<FormField title="application_details.issuer_endpoint">
|
||||
<CopyToClipboard
|
||||
displayType="block"
|
||||
value={applyCustomDomain(appendPath(tenantEndpoint, openIdProviderPath).href)}
|
||||
variant="border"
|
||||
/>
|
||||
</FormField>
|
||||
<>
|
||||
<FormField title="application_details.issuer_endpoint">
|
||||
<CopyToClipboard
|
||||
displayType="block"
|
||||
value={applyCustomDomain(appendPath(tenantEndpoint, openIdProviderPath).href)}
|
||||
variant="border"
|
||||
/>
|
||||
</FormField>
|
||||
<FormField title="application_details.jwks_uri">
|
||||
<CopyToClipboard
|
||||
displayType="block"
|
||||
value={applyCustomDomain(appendPath(tenantEndpoint, openIdProviderJwksPath).href)}
|
||||
variant="border"
|
||||
/>
|
||||
</FormField>
|
||||
</>
|
||||
)}
|
||||
{showMoreEndpoints && (
|
||||
<>
|
||||
|
|
|
@ -23,6 +23,7 @@ const application_details = {
|
|||
description_placeholder: 'Enter your application description',
|
||||
config_endpoint: 'OpenID provider configuration endpoint',
|
||||
issuer_endpoint: 'Issuer endpoint',
|
||||
jwks_uri: 'JWKS URI',
|
||||
authorization_endpoint: 'Authorization endpoint',
|
||||
authorization_endpoint_tip:
|
||||
"The endpoint to perform authentication and authorization. It's used for OpenID Connect <a>Authentication</a>.",
|
||||
|
|
Loading…
Add table
Reference in a new issue