best working and maintaned golang oauth2 server package

2,296 views
Skip to first unread message

Vasiliy Tolstov

unread,
Jan 10, 2017, 2:31:11 PM1/10/17
to golang-nuts
Hi! I need oauth2 server package for go. I found some of them on godoc.org
https://godoc.org/github.com/RangelReale/osin and
https://godoc.org/github.com/go-oauth2/oauth2

Does anybody already tried this packages and have some experience?


--
Vasiliy Tolstov,
e-mail: v.to...@selfip.ru

Vasiliy Tolstov

unread,
Jan 10, 2017, 2:33:17 PM1/10/17
to Vasiliy Tolstov, golang-nuts
Also note that i want to connect to such server from angular2 app via
angular2-oauth2 package providing username and password and get after
auth on backend client token (to use with http auth bearer)

Simon Ritchie

unread,
Jan 11, 2017, 3:08:00 PM1/11/17
to golang-nuts
I've just started work on an OAUTH server too.  So far I've built the "simple" example of the RangelReale project.  It takes a user name and password and produces a token, so it seems to do pretty much all the things that you need.  It also gives a reference to the OAUTH RFC.  If you haven't done this stuff before, that will be very useful.

I can't see any examples in the go-auth2 project, which is why I'm using the RangelReale stuff.  However, I haven't even figured out yet how to build it properly.

Simon
Message has been deleted

fazal

unread,
Jan 17, 2017, 4:53:24 AM1/17/17
to golang-nuts
Checkout https://github.com/ory-am/hydra for a standalone server
and https://github.com/ory-am/fosite library used in implementing the server

Brandon Philips

unread,
Jan 17, 2017, 10:55:30 AM1/17/17
to Simon Ritchie, golang-nuts, Rithu John, Eric Chiang
Hey Simon-

Any reason you aren't using Dex? https://github.com/coreos/dex

Brandon

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vasiliy Tolstov

unread,
Jan 17, 2017, 11:35:41 AM1/17/17
to Brandon Philips, Rithu John, Simon Ritchie, golang-nuts, Eric Chiang
Thanks for link.does this library good for my use-case?
Also does it possible to have server without static assets?

17 Янв 2017 г. 18:55 пользователь "Brandon Philips" <bra...@ifup.co> написал:
Brandon


To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.

Rithu John

unread,
Jan 17, 2017, 4:16:26 PM1/17/17
to Brandon Philips, Simon Ritchie, golang-nuts, Eric Chiang
Hi Simon,

The coreos/go-oidc package enables OpenID Connect support for the golang.org/x/oauth2 package.(https://github.com/coreos/go-oidc). You can look through the examples (https://github.com/coreos/go-oidc/tree/master/example) to get a better idea of how to use the package.

Regards,
Rithu

Brandon

To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards,
Rithu
Reply all
Reply to author
Forward
0 new messages