ohauth:用于Go的OAuth 2提供程序库

时间:2021-05-07 19:51:53
【文件属性】:
文件名称:ohauth:用于Go的OAuth 2提供程序库
文件大小:20KB
文件格式:ZIP
更新时间:2021-05-07 19:51:53
Go OhAuth 定义的Go的OAuth 2提供程序库。 该库旨在定义更严格的OAuth提供程序类型,以遵循各种研究人员的建议(请参阅参考资料) 用法示例 以下示例显示了如何使用一些测试客户端来设置提供程序,以及如何将处理程序安装到gin应用程序中。 Authenticator的实现(由NewDefaultAuthenticator创建)留给读者练习。 package main import ( "fmt" "net/http" "github.com/disintegrator/ohauth" "github.com/gin-gonic/gin" ) func main() { authz := ohauth.MustParseURL("https://authz.saas.dev:3000/oauth") authn := ohauth
【文件预览】:
ohauth-master
----ohauth_test.go(2KB)
----clients.go(3KB)
----ohauth.go(2KB)
----stores_mem.go(2KB)
----http_grant.go(6KB)
----urls.go(3KB)
----scopes_test.go(3KB)
----errors.go(2KB)
----http_authorization_test.go(2KB)
----issuer.go(937B)
----scopes.go(2KB)
----LICENSE(1KB)
----doc.go(440B)
----random.go(303B)
----README.md(3KB)
----urls_test.go(4KB)
----http_authorization.go(4KB)
----authenticators.go(366B)
----tokenizers.go(2KB)
----http.go(1009B)
----tokens.go(980B)
----grants.go(244B)
----.gitignore(266B)
----stores.go(868B)

网友评论