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

Auth primetives #67

Open
2 of 13 tasks
a-givertzman opened this issue Apr 24, 2023 · 0 comments
Open
2 of 13 tasks

Auth primetives #67

a-givertzman opened this issue Apr 24, 2023 · 0 comments
Assignees

Comments

@a-givertzman
Copy link
Owner

a-givertzman commented Apr 24, 2023

AppUserSingle

  • keeps user data
  • fetches users data from remote
  • as a remote can be used:
    • remote storage (mysql) - already implemented
    • local storage unsecured (assets) - to be implemented as a first step - done in this pull request
    • local storage secured (flutter_secure_storage for example if well working on linux, android and web) - future implementation
  • methods:
    • hasPermission(Permission.edit)

UserRole

  • should be implemented as a set of Permission's
  • methods:
    • hasPermission(Permission.edit)

Permission

  • Permission.writeSecureLevel2
  • Permission.writeSecureLevel1
  • Permission.write
  • Permission.read
  • Permission.access
  • Permission... some other options...
  • stored locally unsecured (assets) as a jason:
{
 "Settings.HPU.OilType": [""write"],
 "SettongsPage.SecuredField": ["writeSecureLevel1"],
 "DiagnosticPage": ["access"]
}

let's discuss suggested structure!

@a-givertzman a-givertzman added this to CMA Apr 24, 2023
@a-givertzman a-givertzman converted this from a draft issue Apr 24, 2023
@a-givertzman a-givertzman changed the title User | Roles Auth primetives Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔴 Priority 1
Development

No branches or pull requests

2 participants