Will the auth work without state at the SESSION?

时光怂恿深爱的人放手 提交于 2019-12-13 07:35:25

问题


I saw similar question Facebook Authentication Example CSRF and they say "The hash (or state) is generated by you for each request to the web service (Facebook) and stored in the session on your server. This hash is sent with the request to Facebook from your website. Facebook sends the exact same hash back as a parameter on the response."

Does it mean that without state at the SESSION the auth won't work?


回答1:


A few months ago i made this type of login. It may probably work without it, but it is ABSOLUTELY NECESSARY to use that method for CSRF protection.



来源:https://stackoverflow.com/questions/9030241/will-the-auth-work-without-state-at-the-session

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!