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

Is this library up-to-date with the API #27

Open
JayBizzle opened this issue Apr 4, 2016 · 2 comments
Open

Is this library up-to-date with the API #27

JayBizzle opened this issue Apr 4, 2016 · 2 comments

Comments

@JayBizzle
Copy link

Hi,

Been playing around building a small electron app which uses this library, but from what I can see, this library uses the OAuth password grant authentication method which has been deprecated (requires username and password) rather than the authorisation code grant method.

Or am i missing something?

Thanks

@solidgoldpig
Copy link
Owner

As far as I'm aware nothing has changed apart from adding the oauth via email link.

The password grant still works for me (and is still in the docs) - and I'm going to argue that it shouldn't be deprecated for logging into one's own account with one's own app

If you need to get a token there are 2 passport modules out there:

https://www.npmjs.com/package/passport-mondo
https://www.npmjs.com/package/passport-mondo-oauth2

or I just chucked together an auth script here:

https://gist.github.com/solidgoldpig/c66af9cbe30081a1546072b25eb26ac9

@JayBizzle
Copy link
Author

Thanks for the reply, i will have another go.

Having said that, i received this email from one of the Mondo devs...

Hi Mark, it sounds like you're trying to use the OAuth password grant. This is deprecated; as you've noted, there are no passwords on Mondo any more. key 

Instead, you probably want to implement the authorisation code grant. To get going quickly though, I'd recommend using the access token that our developer portal gives you smile  Hope this helps!

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

No branches or pull requests

2 participants