Skip to content

Conversation

@gabrielsrs
Copy link

@gabrielsrs gabrielsrs commented May 13, 2025

##What
Create a login workflow pages and administration panel to manage users, groups and roles.

##Why
To restrict access to endpoints based on login and group roles for each user enabling manage those accesses.

How

  • Rename decorators to swap validation between api and app
  • Create login, sign up and log out backend structure to handle these actions with JWT
  • Split the validate decorator between two (api_release_access and app_release_access) and these decorators call the function (_verify_jwt_and_permissions) with actually validate access
  • Create template to login, sign up and log out(nav)
  • Create a nav to handle log out, making necessary add function in home and layout templates
  • Add roles on return from group and data from created group and role
  • Change url from UserAssignGroupResource for coerency
  • Create user resource to get user information
  • Create backend to manage access
  • Create page to rbac functionalities
  • Add link on nav to admin users

Issue

resolve #57

@gabrielsrs gabrielsrs force-pushed the frontend-auth branch 4 times, most recently from 502cc5d to a325d46 Compare May 27, 2025 02:19
@gabrielsrs
Copy link
Author

Hi @holysoles, I create the template for login and rbac adm panel, just two things:

  • This PR got bigger than I expected, so I made more commits to clarify the purpose, but without body, If you think is better, I can put a description in each one.
  • If you prefer, I can split these commits between most PRs.

If you think that is something I can add(or remove), let me know...

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.

create frontend HTML/JS for authentication

1 participant