Versions in this module Expand all Collapse all v2 v2.2.0 Sep 17, 2026 Changes in this version + func GetServiceAccountID(r *http.Request) string + func SetAccessControl(api *policyAPI.API) + func SubjectFromRequest(r *http.Request) (policyAPI.Subject, error) type McApiContext + ServiceAccountID string + func GetAPIContext(r *http.Request) *McApiContext v2.1.1 Dec 9, 2025 Changes in this version + type McApiContext struct + Tenant string + UserID string v2.0.0 Jun 18, 2023 Changes in this version + func CreateToken(user user.User, expiresIn, svcTokenID string) (string, error) + func GetUserID(r *http.Request) string + func IsValidToken(r *http.Request) (error, *contextTY.McApiContext) + func MiddlewareAuthenticationVerification(next http.Handler) http.Handler