Comments (5)
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.
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.
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.
@ojfoggin Also please let us know if it does fix it ;)
from oauth2client.
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)
- How to Get Oauth token using Basic authorization HOT 2
- iOS 9 support? HOT 5
- Crash in accountsFromDefaultKeychain assert HOT 1
- OAuth with UiWebView And SSL HOT 1
- FitBit: Authorization header required HOT 8
- Support iOS 9
- Can OAuth2Client Works with Authorization code grant type? HOT 1
- NXOAuth2Request.performMethod cannot be started on background queue HOT 1
- Custom header fields not applied to token refresh request
- refresh access token failing HOT 1
- NXOAuth2Request with custom headers and JSON Body payload
- New pod release? HOT 2
- it does not work properly for fitbit HOT 1
- Crash in NXOAuth2AccountStore HOT 2
- Integration with ADAL
- Can we use this library in swift App.
- "NXOAuth2Request performMethod" does not refresh token after token expired
- Where is the observer for NXOAuth2AccountDidFailToGetAccessTokenNotification?
- Crash in NXOAuth2AccountStore - didFailToGetAccessTokenWithError
- F HOT 1
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 oauth2client.