# Functions
Only allow to access with admin token, admin api token or system token.
Only allow the auth service to access this api.
No description provided by the author
GetAuthToken returns the token from the Authorization header: (Bearer <token>).
No description provided by the author
No description provided by the author
No description provided by the author
Only allow to access with system token, user token or api token.
Only allow to access with refresh token.
Only allow to access with root user token, root user api token or system token.
Setup the auth service Call this function in every service's main.go Please set it up after the api service is setup.
Only allow to access with system token.
Only allow to access with enough usage.
# Constants
These are the auth related error code and message.
These are the auth related error code and message.
These are the auth related error code and message.
These are the auth related error code and message.
# Variables
This map is recorded the api and its uuid, which is determined by the auth service.
AUTH_SERVICE_IP is the IP address of the auth service Please set it to the environment variable AUTH_SERVICE_IP.
This map is recorded the subscription usage This map will send to the usage service periodically.
These are the system basic info Please set it to the environment variable SYSTEM_UUIDs and SYSTEM_NAME.
No description provided by the author
This is the system token for calling the api internally Please set it to the environment variable SYSTEM_TOKEN.
No description provided by the author
USAGE_SERVICE_IP is the IP address of the usage service Please set it to the environment variable USAGE_SERVICE_IP.
These public pem are used to verify the jwt token.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author