Skip to content

Commit

Permalink
add client id and secret
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Oct 18, 2024
1 parent afacb67 commit faca83b
Showing 1 changed file with 36 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { Button, Chip, FormField, Input, Modal } from '@pluralsh/design-system'
import {
Button,
Chip,
Codeline,
Divider,
FormField,
Input,
Modal,
} from '@pluralsh/design-system'
import {
InputMaybe,
OidcAttributes,
Expand Down Expand Up @@ -116,7 +124,7 @@ function EditPluralOIDCClient({
refetch()
}, [onClose, refetch])

const [mutation, { loading, error }] = m({
const [mutation, { data, loading, error }] = m({
variables: { id: provider?.id, attributes },
onCompleted,
})
Expand All @@ -136,6 +144,32 @@ function EditPluralOIDCClient({
gap: theme.spacing.small,
}}
>
<FormField label="Client ID">
<Codeline
displayText={
provider?.clientId ??
'A client ID will be generated upon creation'
}
>
{provider?.clientId}
</Codeline>
</FormField>
<FormField label="Client secret">
<Codeline
displayText={
provider?.clientSecret
? '•••••••••••••••••••••'
: 'A client secret will be generated upon creation'
}
>
{provider?.clientSecret}
</Codeline>
</FormField>
<Divider
backgroundColor="border-fill-two"
marginTop="medium"
marginBottom="medium"
/>
<FormField
label="Name"
required
Expand Down

0 comments on commit faca83b

Please sign in to comment.