Authorisation lib, usage and implementation

Hello All,

I was wondering if I can ask some questions around a lib for authorization in phoenix.

I have recently just started developing in phoenix although I have been exploring elixir for a while. I am currently testing a few libs to see which I will work with in the long run. I am interested in what lib you are using to handle authorization.

I have identified that we there is bodyguard and canary.

I am unable to properly figure out how these libs are supposed to work since I can’t find a proper example showing the auth in action. I am currently using a plug that is matching against a particular value in the User struct. I don’t like this method much and would like to migrate this to a lib.

I was wondering if anyone can provide advice on how to properly implement these in a project. I can’t understand the policies and scopes mainly.

1 Like