This content has moved to https://paweljw.al/blog/2017/07/rails-5.1-api-app-part-4-authentication-and-authorization/.