# Authorisation lib, usage and implementation

**URL:** <https://forum.elixirforum.com/t/authorisation-lib-usage-and-implementation/5069>\
**Category:** Questions\
**Tags:** phoenix\
**Created:** [May 14, 2017, 6:11am UTC](https://forum.elixirforum.com/t/authorisation-lib-usage-and-implementation/5069 "2017-05-14T06:11:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m3rl1n](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@m3rl1n](https://forum.elixirforum.com/u/m3rl1n)\
**Post date:** [May 14, 2017, 6:11am UTC](https://forum.elixirforum.com/t/authorisation-lib-usage-and-implementation/5069/1 "2017-05-14T06:11:52Z")

</div>

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.
