Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[token refresh] Compatibility with python “idan/oauthlib” #167

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from

Conversation

dodikk
Copy link

@dodikk dodikk commented Apr 10, 2015

Library site : https://oauthlib.readthedocs.org/en/latest/

Fixed issues :

  1. OAuth token refresh lacks "Authorization" header required by "idan/oauthlib"
  2. OAuth token is not updated in account store after refresh
  3. Client code is not notified about refresh events

Aleksandr Dodatko and others added 23 commits February 2, 2015 11:31
To make physical structure match the framework layout
Fixed dangling pointers by nullifying delegates in dealloc() function
@bmctigue
Copy link
Contributor

When will this be merged? I really need the token refresh to be working correctly!

@toto
Copy link
Contributor

toto commented Apr 24, 2015

Sorry for the late response. This is quite a big PR. Do you think you could just extract one for the refresh token fix?

  • I'm not sure about NXApplication
  • Fixes like NS_DESIGNATED_INITIALIZER are welcome, but should be done in a seperate PR.
  • Constants should not be in the PCH. The PCH should not be touched at at. Better put them into the umbrella header

@dodikk
Copy link
Author

dodikk commented Apr 27, 2015

Do you think you could just extract one for the refresh token fix?

I think, yes I can. Not sure when I'll have a chance (and some free time).

P.S. Actually, I have created separate pull requests for other improvements. Since they have been ignored, this one looks huge.
#155
#163

@dodikk
Copy link
Author

dodikk commented Apr 27, 2015

@bmctigue you can take a look at the patched repo where I've implemented a fix. https://github.com/healthjoy-ios-opensource/OAuth2Client

@dodikk
Copy link
Author

dodikk commented Apr 27, 2015

Do you think you could just extract one for the refresh token fix?

@toto , the mentioned changes start from the commit below healthjoy-ios-opensource@767eada

@dodikk
Copy link
Author

dodikk commented Apr 27, 2015

Constants should not be in the PCH. The PCH should not be touched at at. Better put them into the umbrella header

Isn't it private stuff that should not be touched by the end user? What's wrong about rarely changed own headers in *.pch ?

Yoda-style comparisons? This should be if (accountType != nil)

Yoda statements are safer and help to avoid if (accountType = nil) typos.

Also the code style is not GNU-style but KR-C so the { goes after the if or else
No paces between arguments and values as well

Come on. Does it all really matter? Are you serious about rejecting the patch due to minor code style incompatibilities?
P.S. Your "Contributing & Pull Requests" readme section lacks a codestyle reference and instructions.

@toto
Copy link
Contributor

toto commented Apr 27, 2015

Nope, not rejecting the patch, just trying to keep the code style consistent.

Good point regarding the code style in the docs. I will add that.

@dodikk
Copy link
Author

dodikk commented May 2, 2015

Do you think you could just extract one for the refresh token fix?

Done. #174

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

Successfully merging this pull request may close these issues.

3 participants