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

Fix for feature 518 public keys #820

Merged
merged 1 commit into from
May 18, 2023
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
23 changes: 23 additions & 0 deletions src/mocks/resolvers/service-accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,29 @@ asdf0jas0dfja0sdfj0as9dfja0sd9fj09sdfj0asjdf0as9jf09asjf0a9sjfa0s9djf0asdjf0asdj
isApproved: true,
isIssued: true,
},
{
id: '888',
name: 'ialdkfjasd0f',
active: true,
application: {
name: 'Shoppers Drug Mart 888',
},
productEnvironment: {
id: '175',
name: 'dev',
flow: 'client-credentials',
product: {
id: '166',
name: 'Demo App',
},
credentialIssuer: {
clientAuthenticator: 'client-secret',
},
},
isComplete: true,
isApproved: true,
isIssued: true,
},
],
})
);
Expand Down
26 changes: 12 additions & 14 deletions src/nextapp/components/access-list/access-list-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,18 @@ const AccessListRow: React.FC<AccessListRowProps> = ({
variant="ghost"
/>
<MenuList>
{[
'kong-api-key-only',
'kong-api-key-acl',
'client-credentials',
].includes(data.productEnvironment.flow) ||
(data.productEnvironment?.credentialIssuer
?.clientAuthenticator === 'client-secret' && (
<MenuItem
data-testid="regenerate-credentials-btn"
onClick={onOpen}
>
Regenerate Credentials
</MenuItem>
))}
{(['kong-api-key-only', 'kong-api-key-acl'].includes(
data.productEnvironment.flow
) ||
data.productEnvironment?.credentialIssuer?.clientAuthenticator ===
'client-secret') && (
<MenuItem
data-testid="regenerate-credentials-btn"
onClick={onOpen}
>
Regenerate Credentials
</MenuItem>
)}
{data.productEnvironment?.credentialIssuer?.clientAuthenticator ===
'client-jwt-jwks-url' &&
controls.jwksUrl && (
Expand Down
Loading