Working with oauth 2

Hello meteorians!

I need some guidance or just a starting point to work with oauth 2. I’m writing an a app that currently use google’s oath to authenticate any user that attempt to log in. This is piece of cake, however, I need to change it to a client’s oauth 2 app. the problem is that I have no idea how to do so.

any comment, hint, help or suggestion is highly appreciated

thanks! :smile:

Oauth endpoint functionality is not standardised, so what works for Google Oauth2 may not work for another.

Having said that, I needed to do the same thing when writing an Oauth package for my company’s Oauth service, and ended up taking Meteor’s google and accounts-google code and reworking as necessary. I had to discard some parts and add in others for different endpoints returning different data, but it all worked out in the end.

Check and and their github repos if it helps.

you mean rolling your own? I’ve tried to do it, but the service provider wasn’t working with it. Regardless, these repos help a lot.

thanks guys!

@corvid yep, I’m rolling my own

I’ll read all this info! and I’ll post my results!