Authentication And Authorisation
Authentication
WebAuthn
my app using it https://strivo.me/registration/new
or
commit how i implemented(further cleanup /daisy ui conversion was later added)
https://github.com/cedarcode/webauthn-ruby
Authorization
Models 1
- DAC - Discretionary
- every user has a permission to another resource - similar to linux file system
- Problems: has to many permission/role objects, which can be mitigated by joining users into groups for example
- MAC - Mandatory
- Further reading:
- Bell & LaPadula (mid-level sec)
- Chinese Wall
- Further reading:
- RBAC - Role Based (i.e Kubernetes), Zero gem is clasic example in Ruby
- still not flexible due to amount of roles
- ABAC - Attribute-based
- adds context
just use PORO in Ruby https://actionpolicy.evilmartians.io/
Leave a comment