-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIP 熊掌号登录和 MIP 支付 #1096
Comments
目前登录组件没有把用户信息往其他组件透传,因为应当是其他组件默认认为是未登录,在登录组件上绑定 这块有什么问题或需求,欢迎讨论。 |
|
这里应该是指登录组件
以上两个请求不包含任何隐私信息,需要源站记录登录状态(如 |
补充下第三,刚才回的有点问题
|
只是登录状态查询的组件,那我就明白了,我还以为需要发起完整的登录过程,不过总感觉这里设计的有点复杂,不知道这块和access会不会有冲突?这块建议仔细想想, 比如将来和access如果需要深入的合作,是否有可能 |
因为登录&支付组件对隐私模式或高版本safari等不能直接跨域传递cookie的浏览器做了特殊处理,需要文档和示例进一步说明兼容的方案。 |
方案已上线 |
前提条件
首先需要熟悉以下知识、功能:
m.baidu.com
形式打开嵌入式的 MIP-Cache 页面,如:https://m.baidu.com/mip/c/s/www.mipengine.org 。cookie
使用withCredentials
方案。response.sessionId
会话标识,登录组件会做前端缓存,在涉及到用户信息时发送接口数据时透传该参数,后端应该使用cookie > POST.sessionId
做用户状态管理。https://
或者//
的绝对链接形式。withCredentials
透传cookie > POST.sessionId
以标识用户唯一标识。熊掌号登录组件 - 已上线
熊掌号登录组件
支付 - 已上线
MIP 支付组件
The text was updated successfully, but these errors were encountered: