Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthenticationStrategy = firebase.NewFirebaseAuthenticationStrategy(env.FirebaseAuthCredential, database.AccountRepository)
Functions ¶
func AuthorizeMultipleRoles ¶
func AuthorizeMultipleRoles(h http.HandlerFunc, roles []int) http.HandlerFunc
AuthorizeMultipleRoles checks if the user's token contains the role that the handler requires. If not, the handler function will not be executed
func SetResponseHeader ¶
func SetResponseHeader(h http.HandlerFunc) http.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.