Coder Social home page Coder Social logo

thekarladam / mpoauth Goto Github PK

View Code? Open in Web Editor NEW
342.0 12.0 74.0 440 KB

With MPOAuthConnection, all the work of talking to secure web services is taken care of for you so you only have to focus on how you want to use the data the remote web service provides.

License: BSD 2-Clause "Simplified" License

C 7.31% Ruby 0.90% Objective-C 91.79%

mpoauth's People

Contributors

haikusw avatar thekarladam 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

mpoauth's Issues

Clang 4.0 compiler complains in -[MPOAuthCredentialConcreteStore signingKey] method

I just compiled the library with new Apple's LLVM Clang 4.0 which complains (shows a warning) in -[MPOAuthCredentialConcreteStore signingKey] method:

/MPOAuth/MPOAuthCredentialConcreteStore.m:183:41: warning: invalid conversion specifier '&' [-Wformat-invalid-specifier]
    return [NSString stringWithFormat:@"%@%&%@", consumerSecret, tokenSecret];
                                          ~^
/MPOAuth/MPOAuthCredentialConcreteStore.m:183:43: warning: more '%' conversions than data arguments [-Wformat]
    return [NSString stringWithFormat:@"%@%&%@", consumerSecret, tokenSecret];

Its result string should be simply: return [NSString stringWithFormat:@"%@&%@", ...]. The & character does not need any kind of escaping or special signs before it ;-)

Avoiding warnings

Using the result of an assignment as a condition without parentheses

if (self = [super init])
if (self = [super initWithRequest:urlRequest delegate:inDelegate])
if (self = [super initWithAPI:inAPI forURL:inURL withConfiguration:inConfig])

should be

if ((self = [super init]))
if ((self = [super initWithRequest:urlRequest delegate:inDelegate]))
if ((self = [super initWithAPI:inAPI forURL:inURL withConfiguration:inConfig]))

Cheers

Set username and password?

I'm trying to run MPOAuthMobile, and the assertion in MPOAuthAuthenticationMethodXAuth, line 33, is telling me that a username is required.

I figured out where to specify the consumer key and secret, but I can't figure out where the username is set. Where is it set?

Thanks very much.

Any documentation?

I'm hesitant to ask, just because I feel I must be overlooking something. But...

Is there any documentation? A README? Quick Start?

Thanks, and I apologize in advance if it's here and I just can't find it.

EXC_BAD_INSTRUCTION launching Twitter app sample

When I launch Twitter app sample, I got an EXC_BAD_INSTRUCTION on line:

NSAssert(username, @"XAuth requires a Username credential");

In file: MPOAuthAuthenticationMethodXAuth.m

Is this a bug? Something I did wrong?

Thank you!

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.