Skip to content

Commit

Permalink
feat(console): display jwks uri on application details page
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyijun committed Feb 7, 2025
1 parent 91cfed9 commit 297bcd4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .changeset/purple-glasses-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@logto/console": minor
"@logto/phrases": minor
---

feat(console): display jwks uri on application details page
1 change: 1 addition & 0 deletions packages/console/src/consts/oidc.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export const openIdProviderConfigPath = 'oidc/.well-known/openid-configuration';
export const openIdProviderPath = 'oidc';
export const openIdProviderJwksPath = 'oidc/jwks';
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 && (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>.",
Expand Down

0 comments on commit 297bcd4

Please sign in to comment.