ruby on rails - Doorkeeper and Devise gets 401 Unauthorized on POST -


I'm trying to create an API using Rail to use with the Android app, I have divisions and gatekeepers Is configured, but I think I forgot something ...

My Controller has this code:

  Gatekeeper: To: all with protection_from_forgery :: Null_session response_to: json  

in the header

  authorization : Bearer b92d41ffd0723a77fcb8acd03e6e5be3b2f3036f07c9619f5bfb62611e31f42d  

When I use the GET method it works, but do not post or delete

When I try to post something in my controller I get this error

  {"error": "You must sign in or sign up before continuing."}  

Any suggestions?

updates

concierge RB

  concierge. Configure orm: active_record resource_owner_initator launches current_assirer || Warden Authentication! (: Scope = & gt ;: UURORI) End Resource_with_frame_recredit. Route | request. Pirum [: USURI] = {: Email = & gt; Request.params [: username],: password = & gt; Request .premium [: password]} request.env ["devise.allow_params_authentication"] = true request.env ["warden"] certify! I have not made any changes to the dev values ​​of Devise   

(<: scope = & gt ;: useri) and end


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -