Để đối phó với một yêu cầu oauth, LinkedIn chuyển hướng người sử dụng trở lại máy chủ của tôi với các thông số sau:LinkedIn OAuth trả về lỗi không rõ ràng
GET /auth/linkedin/callback?error=server_error&error_description=f228ff35d9f7f99ee891ff1e9b056a7a2e4b8429b84de8d7&state=the+authorization+server+encountered+an+unexpected+condition
Hơn nữa, theo LinkedIn API, ERROR_DESCRIPTION là "Một mô tả văn bản URL mã hóa mà tóm tắt lỗi. ", đó không phải là trường hợp ở đây.
Dưới đây là các yêu cầu ban đầu:
https://www.linkedin.com/uas/oauth2/authorization?client_id=************&redirect_uri=https%3A%2F%2Fwww.mydomain.com%2Fauth%2Flinkedin%2Fcallback&response_type=code&scope=r_basicprofile+r_emailaddress&state=cc167e16fcc8039277cae38dc02d08bf526c955ceb403513
Làm thế nào tôi có thể tìm ra nguyên nhân thực sự của sự thất bại?
chồng của tôi:
- Rails 4.2.3
- omniauth 1.2.2
- omniauth-linkedin-OAuth2 0.1.5
Nếu điều này xảy ra mỗi lần, bạn có thể cung cấp mã thực tế để kích hoạt yêu cầu không? –
đã thêm câu hỏi vào câu hỏi – Tal