摘要:
1. 在Vue页面加载时动态发送请求获取微博授权url 1.1 在components\commom\lab_header.vue 中写oauth动态获取微博授权URL // 获取微博登录地址 oauth() { // 从后端获取 微博登录地址 oauth_post().then((resp) => 阅读全文
posted @ 2020-11-06 08:30
晴天·
阅读(92)
评论(0)
推荐(0)
摘要:
1. 创建apps/oauth模块进行oauth认证 '''2.1 在apps文件夹下新建应用: oauth''' cd syl/apps python ../manage.py startapp oauth # 切换到apps文件夹下执行创建命令 '''2.2 添加子路由:oauth/urls.p 阅读全文
posted @ 2020-11-06 08:29
晴天·
阅读(110)
评论(0)
推荐(0)
摘要:
新浪微博咖啡平台:https://open.weibo.com/ 1. 注册账号 注册新浪微博账号 进入首页。创建网站接入的应用:https://open.weibo.com/ 选择立即接入,进入到创建应用页面 创建应用 基本信息页面:https://open.weibo.com/apps/3630 阅读全文
posted @ 2020-11-06 08:27
晴天·
阅读(121)
评论(0)
推荐(0)
摘要:
1. 微博三方登录流程 https://api.weibo.com/oauth2/authorize? client_id=4122644977 &response_type=code &state=study& forcelogin=true& redirect_uri=https%3A%2F%2 阅读全文
posted @ 2020-11-06 08:25
晴天·
阅读(122)
评论(0)
推荐(0)