docs: guide on keeping authentication/roles tables in the same database
See original GitHub issueAs is discussed in other issues like #1446, most applications will use the same database for User
and other tables, thus the authentication server will share the access to the same database with hasura backend. So it will be good to have an optional built-in authentication endpoint in the hasura graphql engine.
One option is to have a customizable authenticate function similar to what graphile use in postgre db.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:17
- Comments:10 (4 by maintainers)
Top Results From Across the Web
4 Configuring Privilege and Role Authorization
Privilege and role authorization controls the permissions that users have to perform ... You can apply DML object privileges to views, similar to...
Read more >Restricting Database Access Using Role-Based Access Control
You can restrict access to the actions that users can perform on databases using role-based access control (RBAC) in Amazon DocumentDB (with ...
Read more >Database Authentication - Ignition User Manual 7.9
On the Gateway webpage under the Configure section, go Security > Users, Roles. The User Sources page will be displayed. Click the blue...
Read more >MySQL 8.0 Reference Manual :: 6.2.10 Using Roles
Creating Roles and Granting Privileges to Them · An application uses a database named app_db . · Associated with the application, there can...
Read more >Secure data access for users and groups | Firestore - Firebase
Now that you have users' roles recorded in the database, you need to write Security Rules to validate them. These rules assume the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@coco98 Thank you for your clarification. I have edited the issue message to avoid confusion.
The reason I opened this issue is that I found it inconvenient to get a working authentication server especially for new hasura users.
To clarify, the current authentication process is:
While what I think will be more convenient is:
I don’t know if implementing an integrated authentication will be difficult, but I think it is a good choice and worth discussion.
I would like to +1 this feature request for an opt-in postgraphile-like basic authentication function inside of Hasura (and other supporting function like password change and user creation with password). For the following reasons:
Honest question: In a JWT solution “secure cookies” are not a concern, correct?
I think I would be happy with either JWT-based or session-based solution as long as I had access to the user attributes in the permissions tab.
Thanks for letting me chime in. 😃