所有,
我试图通过谷歌进行身份验证时得到400 redirect_url_mismatch错误.我通过django应用程序使用python-socal-auth来实现这个过程.
一切顺利,直到我进入redirect_uri_mismatch问题的最后阶段.
在谷歌上,我收到此消息.
"The redirect URI in the request: http://localhost:8000/something/complete/google-oauth2/ did not match a registered redirect URI"
`Request Details
from_login=1
scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
response_type=code
redirect_uri=http://localhost:8000/something/complete/google-oauth2/
state=qT1RLLMa72F8NxFFubHwCVe3GgLDNcgZ
as=-55f896f3314b21af
pli=1
client_id=160177117398
authuser=0
hl=en`
Run Code Online (Sandbox Code Playgroud)
下面是客户端ID的重定向URI的屏幕截图.
我究竟做错了什么?
谢谢!
我目前正在尝试在我的网站首页上创建一个表单.但是,我有问题能够在输入框中输入.在绝对定位中,光标不会显示.当我将定位从绝对更改为相对时,我不再有这个问题.不幸的是,当我这样做时,它会移动我所有其他元素.有没有办法绕这个,所以标签不会移动我的其他元素,以及能够输入到这个输入框?
HTML:
<div id="wrapper">
<div class="header">
<div id="head_login">
Login
<div id="arrow-down"></div>
</div>
</div>
<div id="head_break"></div>
<div class="content_splash">
<form>
**<input type="text" id="firstname" /></form>**
<div id="vertical_one"></div>
<div id="vertical_two"></div>
<p id="OR"> OR </p>
<div id="facebook_login"><img src="{% static 'home/facebook_login.gif' %}" /></div>
</div>
<div id="content_break"></div>
<div class="content_description">
<h2> What is the Title? </h2>
</div>
<div id="content_description_break"></div>
<div class="content_howitworks">
<h2> How it Works.</h2>
</div>
<div id="footer_break"></div>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS:
content_splash{
position: relative;
margin-top: 30px;
height: 500px;
border: 1px solid black;
}
.content_splash input{
-webkit-border-radius: 10px;
-moz-border-radius: 10px; …Run Code Online (Sandbox Code Playgroud)