首页 文章

打开edx android app安装

提问于
浏览
1

我按照edx mobile的步骤操作

1.在azure Ubuntu VM上安装edx fullstack

2.在lms.env.json中更改以下值后

3.i从我的edx管理面板创建oauth2 url:http://my azure vm name / api / mobile / v0.5 /?app = android redirect url:与url客户端类型相同:public

4.在我的windows机器中使用edx-app-android .

5.使用android studio我在配置文件中更改以下值

API_HOST_URL:'_ http://10.0.2.2:8000 ' here i place my azure ip OAUTH_CLIENT_ID: ''在这里我使用第3步生成我的oauth id

5.i在我的azure vm endpoints 中启用端口8000

当在android studio中运行apllication时,它会显示以下错误

org.edx.mobile.http.Api:Auth response = {“error_description”:“需要安全连接 . ”,“error”:“invalid_request”}

1 回答

  • 0

    我使用ssl证书克服了这个用途 . 在SSL证书之后,它工作正常 . 因为对于oauth2身份验证,需要ssl .

相关问题