Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(console): display jwks uri on application details page #7007

Merged
merged 1 commit into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading