摘要: vue绑定用户页面 1.vue微博回调空页面 注:微博回调空页面为: http://127.0.0.1:8888/oauth/callback/ 1.1 页面路径 components\oauth.vue <template><div><div v-show='visiable'>绑定用户用户名: 阅读全文
posted @ 2020-11-05 21:59 Aurora.🌻 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 微博绑定用户接口 1.微博绑定用户接口 1.1 oauth/urls.py 中添加路由 urlpatterns = [path('weibo/binduser/', views.OauthWeiboBindUser.as_view()), #/oauth/weibo/callback/] 1.2 o 阅读全文
posted @ 2020-11-05 21:56 Aurora.🌻 阅读(117) 评论(0) 推荐(0) 编辑
摘要: vue微博回调空页面 1.vue微博回调空页面 注:微博回调空页面为: http://127.0.0.1:8888/oauth/callback/ 1.1 页面路径 components\oauth.vue <template><div><p>跳转中....</p></div></template> 阅读全文
posted @ 2020-11-05 21:47 Aurora.🌻 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 微博回调接口 1.微博回调接口 1.1 oauth/urls.py 中添加路由 urlpatterns = [path('weibo/callback/', views.OauthWeiboCallback.as_view()), #/oauth/weibo/callback/] 1.2 oauth 阅读全文
posted @ 2020-11-05 21:40 Aurora.🌻 阅读(96) 评论(0) 推荐(0) 编辑
摘要: vue获取微博授权URL 1.在Vue页面加载时动态发送请求获取微博授 权url 1.1 在 components\common\lab_header.vue 中写oauth动态获取微 博授权URL // 获取微博登录地址oauth() {// 从后端获取 微博登录地址oauth_post().th 阅读全文
posted @ 2020-11-05 21:28 Aurora.🌻 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 生成微博授权URL接口 1.创建apps/oauth模块进行oauth认证 '''2.1 在apps文件夹下新建应用: oauth'''cd syl/appspython ../manage.py startapp oauth # 切换到apps文件夹下执行创建命令'''2.2 添加子路由: oau 阅读全文
posted @ 2020-11-05 21:04 Aurora.🌻 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 微博账号注册 新浪微博开放平台:https://open.weibo.com/ 1.注册账号 注册新浪微博账号 进入首页。创建网站接入的应用: https://open.weibo.com/ 选择立即接入,进入到创建应用页面 创建应用 基本信息页面: https://open.weibo.com/a 阅读全文
posted @ 2020-11-05 17:14 Aurora.🌻 阅读(1676) 评论(0) 推荐(1) 编辑
摘要: 微博三方登录原理讲解 1.微博三方登录流程 https://api.weibo.com/oauth2/authorize?client_id=4122644977&response_type=code&state=study&forcelogin=true&redirect_uri=https%3A 阅读全文
posted @ 2020-11-05 16:47 Aurora.🌻 阅读(263) 评论(0) 推荐(0) 编辑