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

Add UI support for Push notification based authentication #7370

Open
wants to merge 43 commits into
base: master
Choose a base branch
from

Conversation

ZiyamSanthosh
Copy link
Contributor

Purpose

This PR introduces the components required to enable push notification based authentication.

Related Issues

  • N/A

Related PRs

  • N/A

Checklist

  • e2e cypress tests locally verified. (for internal contributers)
  • Manual test round performed and verified.
  • UX/UI review done on the final implementation.
  • Documentation provided. (Add links if there are any)
  • Relevant backend changes deployed and verified
  • Unit tests provided. (Add links if there are any)
  • Integration tests provided. (Add links if there are any)

Security checks

@@ -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",
Copy link
Contributor

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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this name intentional?

Copy link
Contributor

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

Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add missing doc comment

features/admin.push-providers.v1/tsconfig.json Outdated Show resolved Hide resolved
features/admin.push-providers.v1/rollup.config.cjs Outdated Show resolved Hide resolved
};

const handlePushProviderUpdate = ( data: PushProviderAPIInterface ): void => {
// TODO: Implement update API call.
Copy link
Contributor

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

@wso2-jenkins-bot
Copy link
Contributor

⚠️ No Changeset found

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.

If these changes should result in a version bump, you need to add a changeset.

Refer Release Documentation to learn how to add a changeset.

1 similar comment
@wso2-jenkins-bot
Copy link
Contributor

⚠️ No Changeset found

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.

If these changes should result in a version bump, you need to add a changeset.

Refer Release Documentation to learn how to add a changeset.

quickStart: {
addLoginModal: {
heading: "Add Push Authenticator",
subHeading: "Select an application to set up Push Authentication login."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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" +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.",

@@ -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 ?? []) ];
Copy link
Contributor

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.

@ZiyamSanthosh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants