oauth icon indicating copy to clipboard operation
oauth copied to clipboard

Example code

Open Vild opened this issue 7 years ago • 6 comments

Hey, I need OAuth for one of my projects and it looks like this project would really fit me.

I see that the master branch differs a lot from the v0.0.1-alpha tag, so I'm wonder which I should use.

I would guess that the master branch isn't really done yet, because it userAuthUri and userSession are private. (Bug?) Is there anything I could help with?

  • Dan

Vild avatar Aug 10 '16 23:08 Vild

You should use the master branch, as that is most like the final API. Those two methods being private is a bug indeed. I noticed it last weekend and fixed it locally, just didn't commit yet.

I'm working on example code as well, but some changes to OAuthSession need to go in first. I hope to get that done next weekend.

At this point, most wanted help is just using and testing and report and/or fix any bugs.

thaven avatar Aug 11 '16 20:08 thaven

Okey, Thanks :)

Vild avatar Aug 11 '16 21:08 Vild

The new oauth.webapp module is both a simple vibe.http.auth like API targeted towards web applications and a usage example of the underlying oauth.client API.

thaven avatar Aug 21 '16 06:08 thaven

Is there any chance that your module will be include in vibed?

bubnenkoff avatar Aug 23 '16 07:08 bubnenkoff

Doesn't seem very likely. Vibe.d documentation explicitly states that OAuth support should be provided by an extension library. Some vibe.d developers started their own, rejectedsoftware/user-auth, but that one seems to be abandoned.

Anyway, I will make sure this library and vibe.d play well together.

thaven avatar Aug 23 '16 18:08 thaven

@Vild @bubnenkoff I opened a PR (https://github.com/thaven/oauth/pull/10) with an extracted example for using this great library to allow user login/signup via multiple OAuthProviders (Github, Google in my example) and saving them to a persistent storage (Mongo for simplicity). Maybe it's a bit helpful ;-)

wilzbach avatar Jun 04 '17 01:06 wilzbach