File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,4 @@ export const ssoUrlFormatRegex =
2222 * below, so this message is only a warning.
2323 */
2424export const ssoUrlFormatMessage = 'URL possibly invalid. Expected format: https://xxxxxxxxxx.awsapps.com/start'
25+ export const urlInvalidFormatMessage = 'URL format invalid. Expected format: https://xxxxxxxxxx.com/yyyy'
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ import { LoginOption } from './types'
279279import { CommonAuthWebview } from ' ./backend'
280280import { WebviewClientFactory } from ' ../../../webviews/client'
281281import { Region } from ' ../../../shared/regions/endpoints'
282- import { ssoUrlFormatRegex , ssoUrlFormatMessage } from ' ../../../auth/sso/constants'
282+ import { ssoUrlFormatRegex , ssoUrlFormatMessage , urlInvalidFormatMessage } from ' ../../../auth/sso/constants'
283283
284284const client = WebviewClientFactory .create <CommonAuthWebview >()
285285
@@ -504,7 +504,7 @@ export default defineComponent({
504504 console .log (' After Validate' )
505505 return { error: ' ' , warning: ssoUrlFormatMessage }
506506 } else {
507- return { error: ' URL format invalid. Must follow eg: https://xxxxx.com/yyyy ' , warning: ' ' }
507+ return { error: urlInvalidFormatMessage , warning: ' ' }
508508 }
509509 }
510510
You can’t perform that action at this time.
0 commit comments