code: func (api UsersAPI) GetAllAuthorizations(w http.ResponseWriter, r *http.Request) {
  	username := mux.Vars(r)["username"]
  
  	userMgr := user.NewManager(r)
  
  	authorizations, err := userMgr.GetAuthorizationsByUser(username)
  	if err != nil {
  		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
  		return
  	}
  
  	w.Header().Set("Content-type", "application/json")
  	json.NewEncoder(w).Encode(authorizations)
  
  }
docs: // GetAllAuthorizations is the handler for GET /users/{username}/authorizations
  // Get the list of authorizations.