Giter VIP home page Giter VIP logo

Comments (5)

oliverfoggin avatar oliverfoggin commented on August 18, 2024

Ah, I just found a section of code commented out with the reason...

TODO: check for status code once the bug returning 500 is fixed

Could you possibly shed some light on this? Thanks

from oauth2client.

toto avatar toto commented on August 18, 2024

Can you tell me which services you are using OAuth? Some services (e.g. Yammer, Google) serve the refresh token in wired ways, so that it will not be parsed correctly.

I usually overload the access token parser via a category in that case. Here is an example that works for Yammer

from oauth2client.

oliverfoggin avatar oliverfoggin commented on August 18, 2024

The OAuth service is an in house one.

I've just found the problem.

In the section I mentioned above...

  • (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)theResponse;

in

NXOAuth2Connection

The authenticationHeader was null as I wasn't getting back the 401 error reason (expired_token) from the server.

We are now writing that into the return error so hopefully this should be resolved.

If it doesn't fix it I'll let you know.

Thanks for the reply.

Oliver

from oauth2client.

stigi avatar stigi commented on August 18, 2024

@ojfoggin Also please let us know if it does fix it ;)

from oauth2client.

oliverfoggin avatar oliverfoggin commented on August 18, 2024

Hi again,

Yes, that worked perfectly.

Thanks

Although, I have found something else that didn't quite work but I'll add a new issue for this as it's not really related.

from oauth2client.

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.