Doing a Http basic authentication in rails

后端 未结 8 1097
独厮守ぢ
独厮守ぢ 2020-12-14 16:09

Hi I\'m from Grails background and new to Rails. I wish to do http basic authentication in rails.

I have a code in grails which does basic authentication like this:<

8条回答
  •  [愿得一人]
    2020-12-14 16:34

    For the latest rails version there is a ASCIIcast that explains with steps the HTTP Basic Authentication.

    The link goes here.

    Side Note: Be warned that HTTP Basic Authentication transmits the username and password in clear text, so you should not use this method for applications where a higher level of security is required.

提交回复
热议问题