Comments (7)
@krishnakanthjb have you enabled oauth support on your edx instance?
from edx-app-ios.
I got ClientID and Client secret....BTW where to enable that..In the edx-master?
from edx-app-ios.
@krishnakanthjb See the instructions here http://edx-installing-configuring-and-running.readthedocs.org/en/latest/mobile.html in particular section 10.2.1 which will give you the server side configuration keys you need to set.
from edx-app-ios.
@aleffert : As suggested, We've cross checked and also enabled the following
"FEATURES" : {
...
"ENABLE_MOBILE_REST_API": true,
"ENABLE_OAUTH2_PROVIDER": true,
"ENABLE_COMBINED_LOGIN_REGISTRATION": true
}
in the edx/app/edxapp/lms.env.json. we are still getting the 400 error code.
Xcode Response :
<NSHTTPURLResponse: 0x7fa37b75aef0> { URL: /oauth2/access_token } { status code: 400, headers {
"Cache-Control" = "no-store";
Connection = "keep-alive";
"Content-Language" = en;
"Content-Type" = "application/json";
Date = "Wed, 02 Sep 2015 13:26:33 GMT";
Pragma = "no-cache";
Server = "nginx/1.1.19";
"Set-Cookie" = "sessionid=ab9dbf025e7c4b5799978444127ac138; expires=Wed, 16-Sep-2015 13:26:33 GMT; httponly; Max-Age=1209600; Path=/";
"Transfer-Encoding" = Identity;
Vary = "Accept-Language, Cookie";
"X-Frame-Options" = ALLOW;
} }
Also when we are trying from the firefox REST client tool, it showing the below response.
I'm passing this as body:
{"client-id":"xxxxxxxxxxxxxx",
"username":"[email protected]",
"password":"xxxxxxxx",
"grant-type":"password"}
Response:
Status Code: 400 BAD REQUEST
Cache-Control: no-store
Connection: keep-alive
Content-Language: en
Content-Type: application/json
Date: Wed, 02 Sep 2015 14:26:35 GMT
Pragma: no-cache
Server: nginx/1.1.19
Transfer-Encoding: chunked
Vary: Accept-Language, Cookie
X-Frame-Options: ALLOW
{"error_description": "A secure connection is required.", "error": "invalid_request"}
Seems like this is breaking, pls confirm:
URL: /oauth2/access_token
Please suggest what going wrong, we've configured the setting's as per the ReadMe Notes.
from edx-app-ios.
@krishnakanthjb You probably need to disable the SSL requirement by setting OAUTH_ENFORCE_SECURE
in your server config to false. Alternately, you can enable SSL on your server, which is recommended for a production configuration.
from edx-app-ios.
@aleffert Thanks...Will check and let you know the update..
from edx-app-ios.
@krishnakanthjb Was the issue fixed for you? What did you change to make it work? I'm having the same problem right now.
from edx-app-ios.
Related Issues (20)
- Bluetooth permission in iOS 13 HOT 3
- Login Issue edx-app-ios-release-2.21.5 HOT 3
- Swift Compiler Error: Argument labels '(paginator:, collectionView:)' do not match any available overloads.
- ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. HOT 15
- Microsoft external auth is not showing on login view HOT 1
- App with 3rd party sign in services can't be uploaded(published) to the App Store HOT 1
- App not build for iOS 13 SDK HOT 1
- [Apple Store] In-app Purchase is required when release the app on apple store HOT 4
- Registration view seems to not work HOT 6
- AppTrackingTransparency prevent app store release HOT 1
- Invalid Signature at App Store uploading HOT 4
- Not able to run the app with Xcode 12.4 HOT 3
- Current issues i am facing with this App HOT 1
- How to update the custom icon to the material shape to use it HOT 1
- the app crashed due to the memory issue when i click the course after login successfully HOT 8
- Multiple command produce error HOT 2
- IOS app registration screen error 404 HOT 1
- XCODE 14.3.1 (Mac M2 CPU) IOS OpenEDX Compilation Erro HOT 2
- Mac OS M2, (Xcode 14.3.1) Command PhaseScriptExecution failed with a nonzero exit code HOT 5
- XCODE 15 Support required : Facing gradel issue HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edx-app-ios.