标签: google-oauth
当我对Google OAuth请求使用以下URI时,我收到错误“Realm与redirect_uri / origin不匹配。错误代码:2”。谁能告诉我我做错了什么?
https://accounts.google.com/o/oauth2/auth?client_id=client_id_copied_from_the_developer_console&response_type=code&scope=openid%20email&redirect_uri=https://mysite.your-now.com/oauth2callback&state=security_token%3D138r5719ru3e1%26url%3Dhttps://mysite.your-now.com/navpage.do&login_hint=mycompany@gmail.com&openid.realm=your-now.com&hd=your-now.com
答案 0 :(得分:0)
您提供的领域值为openid.realm格式不正确。
更具体地说,openid4java match method失败并带有MALFORMED_REALM结果。确保您提供有效的网址作为领域!
希望有所帮助。