-
Notifications
You must be signed in to change notification settings - Fork 263
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
Add UI support for Push notification based authentication #7370
base: master
Are you sure you want to change the base?
Conversation
@@ -739,9 +739,9 @@ export const getAppViewRoutes = (): RouteInterface[] => { | |||
exact: true, | |||
icon: { icon: <EnvelopeGearIcon fill="black" className="icon" /> }, | |||
id: "notificationChannels", | |||
name: "Email & SMS", | |||
name: "Notification Channels", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use i18n for string literals
icon: getSidePanelIcons().sms | ||
}, | ||
id: "pushProviders", | ||
name: "Push", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this name intentional?
apps/console/src/public/resources/notification-providers/assets/images/illustrations/push.svg
Show resolved
Hide resolved
apps/console/webpack.config.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's revert this change when the PR is ready to merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do we show this image in the auth portal
@@ -30,6 +30,13 @@ export interface DynamicFormInterface { | |||
* Should the form only submit the fields defined above. | |||
*/ | |||
submitDefinedFieldsOnly?: boolean; | |||
|
|||
common: DynamicCommonInterface; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add missing doc comment
}; | ||
|
||
const handlePushProviderUpdate = ( data: PushProviderAPIInterface ): void => { | ||
// TODO: Implement update API call. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's update the missing function body
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. |
1 similar comment
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. |
quickStart: { | ||
addLoginModal: { | ||
heading: "Add Push Authenticator", | ||
subHeading: "Select an application to set up Push Authentication login." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subHeading: "Select an application to set up Push Authentication login." | |
subHeading: "Select an application to set up push authentication." |
}, | ||
connectApp: { | ||
description: | ||
"Add <1>Push NotificationP</1> to <3>Step 2</3> on the <5>Login Flow" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Add <1>Push NotificationP</1> to <3>Step 2</3> on the <5>Login Flow" + | |
"Add <1>Push Notification</1> to <3>Step 2</3> on the <5>Login Flow" + |
"</5> section of your <7>application</7>." | ||
}, | ||
heading: "Push Authenticator Set Up Guide", | ||
subHeading: "Follow the instructions given below to set up Push Authenticator as a factor in your login flow.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subHeading: "Follow the instructions given below to set up Push Authenticator as a factor in your login flow.", | |
subHeading: "Follow the instructions to set up Push Authenticator in your login flow.", |
subHeading: "Follow the instructions given below to set up Push Authenticator as a factor in your login flow.", | ||
steps: { | ||
selectApplication: { | ||
content: "Choose the <1>application</1> for which you want to set up Push Authenticator login.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
content: "Choose the <1>application</1> for which you want to set up Push Authenticator login.", | |
content: "Choose the <1>application</1> for which you want to set up Push Authentication.", |
features/admin.connections.v1/components/authenticators/push/quick-start.tsx
Show resolved
Hide resolved
features/admin.connections.v1/components/authenticators/push/quick-start.tsx
Outdated
Show resolved
Hide resolved
features/admin.connections.v1/components/authenticators/push/quick-start.tsx
Outdated
Show resolved
Hide resolved
features/admin.push-providers.v1/components/push-provider-card.tsx
Outdated
Show resolved
Hide resolved
features/admin.connections.v1/components/edit/forms/authenticators/push-authenticator-form.tsx
Outdated
Show resolved
Hide resolved
features/admin.connections.v1/components/edit/forms/authenticators/push-authenticator-form.tsx
Outdated
Show resolved
Hide resolved
...ures/admin.identity-providers.v1/components/forms/authenticators/push-authenticator-form.tsx
Outdated
Show resolved
Hide resolved
...ures/admin.identity-providers.v1/components/forms/authenticators/push-authenticator-form.tsx
Outdated
Show resolved
Hide resolved
…s/images/illustrations/push.svg
5aedac5
to
0cc13c3
Compare
@@ -157,7 +158,10 @@ export const AuthenticatorGrid: FunctionComponent<AuthenticatorGridPropsInterfac | |||
const dispatch: Dispatch = useDispatch(); | |||
const eventPublisher: EventPublisher = EventPublisher.getInstance(); | |||
const { UIConfig } = useUIConfig(); | |||
const hiddenAuthenticators: string[] = [ ...(UIConfig?.hiddenAuthenticators ?? []) ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can hide the authenticators by specifying authenticator names in hiddenAuthenticators
in deployment.config.json.
features/admin.push-providers.v1/api/use-create-push-provider.ts
Outdated
Show resolved
Hide resolved
…tors/push-authenticator-form.tsx
Purpose
This PR introduces the components required to enable push notification based authentication.
Related Issues
Related PRs
Checklist
Security checks