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

Implemented: feature for user authorisation (#2ebg32y) #188

Merged
merged 39 commits into from
Jan 30, 2023
Merged

Conversation

adityasharma7
Copy link
Contributor

@adityasharma7 adityasharma7 commented Jun 8, 2022

Related Issues

With the new authorization feature, app-level access permissions could be defined. Server permissions are being processed with certain rules and app-level permissions are identified. With specific app permission, users could perform specific actions.

Closes #360
https://app.clickup.com/t/2ebg32y

Short Description and Why It's Useful

Authorization is one of the key features of any DXP. The app should be able to identify the access permission of the user and allow/disallow the user with access accordingly.

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to add changelog entry

Contribution and Currently Important Rules Acceptance

… with CASL library (#2ebg32y)

1. Implmented logic to define ability globaly and set it on login/logout
2. Implemented logic to check if user has update Job permission for pipeline skip and cancel action
Implmented defineAbilityForUser method to define permissions for user and used in during login/logout
Added ACTIONS and SUBJECTS constant to ensure consistency of values set for permissions
@dixitdeepak
Copy link
Contributor

@dixitdeepak test notification

…sume (#2ebg32y)

Upgraded the casl library to latest version
…bg32y)

Improved the data model for user, store permissions directly in user state instead of profile in order to reduce its dependency
Improved services to provision token
Moved code to get profile to login

When the user login into the application, data like productstore, shopify config, timezone are required for proper functioning of application.
If either of them fails, we could have uncertain behaviour from the application
@adityasharma7 adityasharma7 changed the title Implmented: logic to set and check authorization for the current user with CASL library (#2ebg32y) Implmented: feature for user authorization (#2ebg32y) Jan 30, 2023
@adityasharma7 adityasharma7 changed the title Implmented: feature for user authorization (#2ebg32y) Implemented: logic to set and check authorization for the current user with CASL library (#2ebg32y) Jan 30, 2023
@adityasharma7 adityasharma7 changed the title Implemented: logic to set and check authorization for the current user with CASL library (#2ebg32y) Implemented: feature for user authorisation (#2ebg32y) Jan 30, 2023
@adityasharma7 adityasharma7 merged commit 6c97b38 into main Jan 30, 2023
@adityasharma7 adityasharma7 deleted the #2ebg32y branch January 30, 2023 11:24
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.

Add support for user authorisation
2 participants