GithubHelp home page GithubHelp logo

Comments (8)

mikekatz avatar mikekatz commented on June 14, 2024

Are you building with iOS 9 and your endpoint is HTTP and not HTTPS? If so you might be running into App Transport Security.

from edx-app-ios.

mrimadali avatar mrimadali commented on June 14, 2024

@mikekatz I'm building for iOS 8 not yet for iOS 9. And the End point Url is HTTP not HTTPS. We've downloaded the master copy and followed the ReadMe and configured the same.
We're able to register but not Sign In, It throws 400 Err. Please suggest ?

from edx-app-ios.

aleffert avatar aleffert commented on June 14, 2024

Hi @mrimadali you probably need to set up your server not to require SSL for OAUTH. You need to set the OAUTH_ENFORCE_SECURE flag in your server config to false.

from edx-app-ios.

mrimadali avatar mrimadali commented on June 14, 2024

Thanks @aleffert, I Will check those settings and give a try.

from edx-app-ios.

kythanh avatar kythanh commented on June 14, 2024

Hi @aleffert
By adding OAUTH_ENFORCE_SECURE: false flag I can call login without SSL. But now I got issue when calling /api/mobile/v0.5/my_user_info. Response from server:

{
    detail = "Authentication credentials were not provided.";
}

Do you have any idea?

from edx-app-ios.

kythanh avatar kythanh commented on June 14, 2024

I've sorted this issue by updating settings in server. This is django config issue.

from edx-app-ios.

travisnewby avatar travisnewby commented on June 14, 2024

@kythanh,

For those of us encountering the same issue, can you post what configuration you had to change?


Update:
The configuration change can be found here. You must add the line: WSGIPassAuthorization On

from edx-app-ios.

phyominthu avatar phyominthu commented on June 14, 2024

@mrimadali Was the issue fixed for you? What did you change?

@aleffert OAUTH_ENFORCE_SECURE is already set to false on both development and production servers. I can sign in to our development server, but strangely, I can't sign in to production. Is there anything else I can do to fix this?

from edx-app-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.