使用Golang开发OAuth2应用程序,允许从其他应用程序进行登录。

huangapple go评论95阅读模式
英文:

develop oauth2 application using golang that allows signin from other applcation

问题

开发一个应用程序,允许客户通过登录来验证他们的用户身份的最佳方式是什么?就像我们可以使用Google登录一样,我想提供我的应用程序登录功能。

英文:

what is the best way to develop an application which allows clients to authenticate their user by logging into my application.
Like we can do google sign in, i want give myapp signin.

答案1

得分: 0

我认为有很多包可以实现这个功能。例如,https://github.com/go-oauth2/oauth2。

英文:

I think there are a lot of packages to do it. For example https://github.com/go-oauth2/oauth2

答案2

得分: 0

所以有很多包。一个非常好的包,可以包装所有不同的提供者,叫做goth。我写了一个使用goth和Buffalo的简短教程,你可以用作示例。

英文:

So there are a lot of packages. A very good package, which wraps all the different providers is goth. I wrote a short tutorial using goth with Buffalo, which you could use an example.

huangapple
  • 本文由 发表于 2017年4月4日 20:11:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/43206889.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定