Giter Club home page Giter Club logo

instagramsimpleoauth's People

Contributors

rbaumbach avatar readmecritic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

instagramsimpleoauth's Issues

InstagramLoginResponse with fully qualified redirection URI tweak

hi, we’re exploring to replace the old Google oAuth 2.0 iOS libs and this looks great, nice one.

However, your InstagramLoginResponse completion block wouldn’t fire for us, and looking into it I noticed that our authcallback URL was fully qualified i.e. domain.com/services/authcallback.html instead of say domain.com/callback/ — suppose both are valid callbacks.

So we had to remove the / prefix from the InstagramAuthCodeParam constant in InstagramLoginUtils.

*NSString const InstagramAuthCodeParam = @"?code="; // /?code=

Hope this helps someone

Relogin

When the user login once , the code does not allows to re-login with another account, after the user on clicking the button again.
The view controller is pushed and if user has already logged in then VC is popped and user cant change his account.

InstagramSimpleOAuthViewController dismisses automatically with an error

Hi,

I'm not sure if this is bug of your library of just a lack of documentation but when I try to present InstagramSimpleOAuthViewController it shows spinner and after few moments callback block gets called with given error:

Error Domain=NSURLErrorDomain Code=-999 "(null)" UserInfo={NSErrorFailingURLStringKey=https://staticxx.facebook.com/connect/xd_arbiter/r/xaOI6zd9HW9.js?version=42#cb=f117246175298ac&domain=www.instagram.com&origin=https%3A%2F%2Fwww.instagram.com%2Ff325e717a66a4d4&relation=parent&error=unknown_user, NSErrorFailingURLKey=https://staticxx.facebook.com/connect/xd_arbiter/r/xaOI6zd9HW9.js?version=42#cb=f117246175298ac&domain=www.instagram.com&origin=https%3A%2F%2Fwww.instagram.com%2Ff325e717a66a4d4&relation=parent&error=unknown_user})

I'm sure that cliendID, clientSecret and callbackURL are correct.

User sign-out, persistency?

So the entire auth is cookie-based but cookies get (sometimes) set at weird times. It appears a cookie will be set once the user has been authenticated (after a few seconds).

Wondering, what would be best approach to implement a sign-out; basically to reset the InstagramSimpleOAuthViewController to allow different credentials?

Clear the cookies?? i.e. something like:

-(IBAction) signOut:(id)sender{
NSHTTPCookie *cookie;
NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (cookie in [storage cookies]){
[storage deleteCookie:cookie];
}
[[NSUserDefaults standardUserDefaults] synchronize];
[self loginController]; // show clean auth view
}

Crash on login

Hi, I'm using the InstagramSimpleOAuthViewController to login the user into my app, but the library crashes on the method
- (instancetype)initWithInstagramOAuthResponse:(NSDictionary *)response in the class InstagramLoginResponse

with the error
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[InstagramUser initWithDictionary:]: unrecognized selector sent to instance

I'm using the InstagramSimpleOAuthViewController as-is in your explanations with SDK 8.1
What's wrong?

Thanks
\m

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.