0
Fork 0
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:
Xiao Yijun 2025-02-08 10:32:06 +08:00 committed by GitHub
parent 91cfed99cb
commit 0b785ee0d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 8 deletions

View file

@ -0,0 +1,6 @@
---
"@logto/console": minor
"@logto/phrases": minor
---
feat(console): display jwks uri on application details page

View file

@ -1,2 +1,3 @@
export const openIdProviderConfigPath = 'oidc/.well-known/openid-configuration';
export const openIdProviderPath = 'oidc';
export const openIdProviderJwksPath = 'oidc/jwks';

View file

@ -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 && (
<>

View file

@ -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>.",