H
H
Homakov2012-07-03 20:53:50
Ruby on Rails
Homakov, 2012-07-03 20:53:50

How to get rid of default OAuth Callback Forgery?

homakov.blogspot.com/2012/07/saferweb-most-common-oauth2.html
who would solve the problem without leaving the parameter optional?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
larikov, 2012-07-03
@larikov

This article describes the solution.
You are supposed to send special optional param 'state' - any random hash you get back by Provider in User's callback: ?code=123&state=HASH. Before adding OAuth account you MUST verify session[state] is equal params[state].

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question