package
0.0.0-20210730142958-e2aa4118589e
Repository: https://github.com/mxc-foundation/lpwan-app-server.git
Documentation: pkg.go.dev

# Functions

GetAccessTokenFromCode sends http request and return response for getting access token with appid, secret and code.
GetWeChatUserInfoFromAccessToken sends http request and return response of getting wechat user info with access token and openid.
NewCredentials returns credential set of an user.
No description provided by the author

# Constants

ExternalServiceName defines const type: name of external services.
ExternalServiceName defines const type: name of external services.
ExternalServiceName defines const type: name of external services.
ExternalServiceName defines const type: name of external services.

# Structs

Credentials provides information about user's credentials.
GetAccessTokenResponse represents struct of get wechat access_token response.
GetWeChatUserInfoResponse represents struct of get wechat user info response.
No description provided by the author
OrgUser contains information about the role of the user in organisation.
User contains information about the user.
WeChatAuth defines necessary variables for authenticating a wechat user.
WeChatAuthentication defines configuration for authorizing wechat users.

# Interfaces

Authenticator authenticates the user and returns Credentials.
Store provides access to information about users and their roles.