oauth2:请求会话

时间:2017-12-24 03:56:01

标签: python python-3.x oauth oauth-2.0 python-requests

通过使用Python请求模块,我正在尝试登录Linuxacademy。 使用开发人员工具帮助我几乎设法获得有效负载信息和我应该使用的URL,但在尝试使用

登录时
r =requests.post('https://lacausers.auth0.com/usernamepassword/login',params=payload)

Payload包含敏感信息,但字段如下

client_id":     
"redirect_uri": 
tenant":        
connection":    
username":      
password":      
nonce":         
state":         
_intstate":     
_csrf":         
audience":      
auth0Client":   
scope":         
protocol":      

我收到以下错误

{"name":"ValidationError","code":"session_missing","description":"Session missing. Close all open login dialogs and try again.","statusCode":400}

我已经关闭了所提到的所有打开的登录对话框,并从现有的浏览器登录中注销。我得到同样的错误。

似乎LA使用“oauth2”进行身份验证。

我想要实现的是,我正在尝试通过python启动我的labservers - 请求。

提前致谢。

0 个答案:

没有答案