File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ import { HL } from '~/components/HL'
20
20
import { useSiloSelector } from '~/hooks/use-params'
21
21
import { addToast } from '~/stores/toast'
22
22
import { FormDivider } from '~/ui/lib/Divider'
23
+ import { Message } from '~/ui/lib/Message'
23
24
import { SideModal } from '~/ui/lib/SideModal'
24
25
import { readBlobAsBase64 } from '~/util/file'
26
+ import { links } from '~/util/links'
25
27
import { pb } from '~/util/path-builder'
26
28
27
29
import { MetadataSourceField , type IdpCreateFormValues } from './shared'
@@ -120,7 +122,36 @@ export function CreateIdpSideModalForm() {
120
122
submitError = { createIdp . error }
121
123
submitLabel = "Create provider"
122
124
>
123
- < NameField name = "name" control = { form . control } />
125
+ < Message
126
+ content = {
127
+ < >
128
+ Read the{ ' ' }
129
+ < a
130
+ href = { links . identityProvidersDocs }
131
+ className = "underline"
132
+ target = "_blank"
133
+ rel = "noreferrer"
134
+ >
135
+ Rack Configuration
136
+ </ a > { ' ' }
137
+ guide to learn more about setting up an identity provider.
138
+ </ >
139
+ }
140
+ />
141
+ < NameField
142
+ name = "name"
143
+ control = { form . control }
144
+ description = {
145
+ < >
146
+ A short name for the provider in our system. Users will see it in the path to
147
+ the login page:{ ' ' }
148
+ < code >
149
+ /login/{ silo } /saml/{ name . trim ( ) || 'idp-name' }
150
+ </ code >
151
+ .
152
+ </ >
153
+ }
154
+ />
124
155
< DescriptionField name = "description" control = { form . control } required />
125
156
< TextField
126
157
name = "technicalContactEmail"
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export const Message = ({
71
71
// TODO: convert content to a children prop
72
72
content,
73
73
className,
74
- variant = 'success ' ,
74
+ variant = 'info ' ,
75
75
cta,
76
76
icon,
77
77
} : MessageProps ) => {
You can’t perform that action at this time.
0 commit comments