//
pkg.gl
Category
github.com/lixd/grpc-go-example
features
authentication
package
0.0.0-20221016030802-421612b74aa5
Repository:
https://github.com/lixd/grpc-go-example.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
2
Files
53 SLOC
#
Packages
client
The client demonstrates how to supply an OAuth2 token for every RPC.
server
The server demonstrates how to consume and validate OAuth2 tokens provided by clients for each RPC.
#
Functions
IsValidAuth
IsValidAuth 具体的验证逻辑.
NewMyAuth
No description provided by the author
#
Constants
Admin
No description provided by the author
Root
No description provided by the author
#
Structs
MyAuth
MyAuth 自定义 Auth 需要实现 credentials.PerRPCCredentials 接口.