안녕하세요 이 질문은 이전에 물어 왔지만 거기에 대한 답변이 저를 위해 작동하지 않습니다.OmniAuth 유효하지 않은 응답 - 1.9.2로 업데이트되지 않음
내 사이트로 리디렉션 할 때 여전히 결과가 나타납니다.
/auth/failure?message=invalid_response
는 I 루비 1.9.2p180 (2011-02-18 수요일 수정 30,909) x86_64에-darwin10.6.0] 설치하여 레일 3.0.7 설치 필요한 보석을 갖는다. 다른 스레드에서 pure_json을 gemfile에 추가하여 작업하게해야한다고 읽었습니다. 하지만 그건 나에게 도움이되지 못했다. 사전에
내가 ... 우둔 해요 덕분에
authenticationscontroller
def index
@authentications = current_user.authentications if current_user
end
def create
#render :text => request.env["omniauth.auth"].to_yaml
auth = request.env["omniauth.auth"]
current_user.authentications.find_or_create_by_provider_and_uid(auth['provider'], auth['uid'])
flash[:notice] = "Authentication successful."
redirect_to authentications_url
end