Welcome Guest, Not a member yet? Register   Sign In
Create JWT Auth in CodeIgniter 4
#11

(04-19-2023, 02:31 AM)kenjis Wrote: What's the groups table? I've never heard such a request.

Shield has groups_users table from the beginning.
https://github.com/codeigniter4/shield/b...s.php#L129
auth_groups_users is UNF and not even 1NF (first normal form)

Reference:
Database normalization @ Wikipedia 
https://en.wikipedia.org/wiki/Database_normalization

I asked the question not to upset anybody, but to find out if there are any plans to make it normalized, or everyone is happy to live with it.

CodeIgniter Wizard (CRUD code generator for Mac) instantly scaffolds Bootstrap-based web applications with an administrative interface (admin templates include Bootstrap5)

Reply
#12

It probably will not be normalized in the near future. The lack of normalization seems intentional,
and no one asked for it to be normalized.

I think it would not be impossible to normalize by adding a groups table, changing the value
in the users_groups table to group_id, and changing the model.
Reply
#13

(04-19-2023, 04:42 AM)gosocial2 Wrote: to find out if there are any plans to make it normalized

No plans for now.
But If people feel strongly about changing it and wants to put in the effort Lonny and I have no problems with that.
Reply
#14

Shield will support JWT authentication starting with the next release.
See https://github.com/codeigniter4/shield/b...entication
Reply
#15

So the PR is approved and merged? Kudos.

CodeIgniter Wizard (CRUD code generator for Mac) instantly scaffolds Bootstrap-based web applications with an administrative interface (admin templates include Bootstrap5)

Reply
#16

PR has been approved and merged.
It is now available and usable via branch develop.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB