Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Sign-in Error: Can Not Login #1109

Closed
Garyguo2011 opened this issue May 12, 2018 · 2 comments
Closed

Sign-in Error: Can Not Login #1109

Garyguo2011 opened this issue May 12, 2018 · 2 comments

Comments

@Garyguo2011
Copy link

I have a Open Edx server successfully set up with valid SSL certificate. I can login the new user on web successfully. I set up Mobile app, where can success register a new user (Django administration console shows new user after registration), can receive the forget password email. I think the mobile API is partially working already.

However, when i try to login, it always give "Sign-in Error: Please make sure that your username or e-mail...". The log that server shows looks ok:

2018-05-12 15:29:41,433 INFO 3161 [tracking] logger.py:50 - {"username": "", "event_type": "/oauth2/access_token", "ip": "73.15.2.91", "agent": "edX/org.edx.mobile (2.14.1; OS Version 11.2 (Build 15C107))", "host": "edx-dev.ibear.host", "referer": "", "accept_language": "en;q=1.0", "event": "{\"POST\": {\"username\": [\"test01\"], \"password\": \"********\", \"client_id\": [\"295df9e42d3e39182a0f\"], \"grant_type\": [\"password\"]}, \"GET\": {}}", "event_source": "server", "context": {"user_id": null, "org_id": "", "course_id": "", "path": "/oauth2/access_token"}, "time": "2018-05-12T19:29:41.433533+00:00", "page": null}

Looks like Django admin console > Oauth2 › Access tokens also issue the token.

I have looked previous issue thread and try the solution, it doesn't solve the problem.

Could someone help a bit please? not sure where is missing part. Or someone try a bit on their environment?

Test Account:

Host: https://edx-dev.ibear.host
Client_ID: 295df9e42d3e39182a0f
email: test01@gmail.com
username: test01
pass: admin

iOS Mobile Side setting:

XCode: 9.2
Edx Mobile: 2.14.1

local.yaml

OAUTH_CLIENT_ID: '295df9e42d3e39182a0f'

config.yaml

API_HOST_URL: 'https://edx-dev.ibear.host'
ENVIRONMENT_DISPLAY_NAME: 'edx-dev.ibear.host'
FEEDBACK_EMAIL_ADDRESS: 'support@example.com'

Edx Server Side

I followed Setting Up the Open edX Mobile Applications to configure my server.

I have generated the OAuth2 client on Django administration console.

lms.env.json

"ENABLE_MOBILE_REST_API": true,
"ENABLE_OAUTH2_PROVIDER":true,
"ENABLE_COMBINED_LOGIN_REGISTRATION": true,
"OAUTH_ENFORCE_SECURE": true,

#1103
#1068

@saeedbashir
@phyominthu

Could someone also use their mobile setting test against my environment?

@saeedbashir
Copy link
Contributor

@Garyguo2011 I'm not able to access the specified API_HOST_URL: https://edx-dev.ibear.host. Could you please check the access level or your server?

@saeedbashir
Copy link
Contributor

@Garyguo2011 I haven't heard anything on this issue from you so closing this issue. Please do let me know if you need any help?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants