微博设置 和 逻辑

微博设置 和 逻辑

  • 微博登录的回调地址, 回调地址的格式: http://主机头:端口/path/ => 不能带 #,

  • 我们现在的vue的路由: 127.0.0.1:8080/#/path

  • 我们把vue的路由模式改成history模式(现在是hash) => 127.0.0.1:8080/, 127.0.0.1:8080/register/, 127.0.0.1:8080/login/

  • 修改vue路由设置, 改成history

在这里插入图片描述

  • 修改文件引入路径, vue项目根目录下的index.html

  • 原来的地址是 http://127.0.0.1:8080/

  • http://127.0.0.1:8080/ static/scc/main.css => http://127.0.0.1:8080/static/scc/main.css ok

  • http://127.0.0.1:8080/oauth/callback/ static/scc/main.css =>

  • http://127.0.0.1:8080/oauth/callback/static/scc/main.css xxxx

  • http://127.0.0.1:8080/oauth/callback/ /static/scc/main.css => http://127.0.0.1:8080/static/scc/main.css ok

在这里插入图片描述

  • 微博登录

    • 申请微博开发者账号, 才能有访问微博接口的权限
    • 注册开发者账号: http://open.weibo.com/
    • 申请应用
      在这里插入图片描述
      在这里插入图片描述
      在这里插入图片描述
  • 高级设置
    在这里插入图片描述

  • 三方登录逻辑

    在这里插入图片描述

  • 实现三方登录

    • 绑定表(uid, user, c_time, u_time)

    在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值