(c *gin.Context)
| 1876 | } |
| 1877 | |
| 1878 | func authorizationTokenAndTeam(c *gin.Context) (string, string, bool) { |
| 1879 | token, authorizationTeamID := splitAuthorizationTokenAndTeam(c.GetHeader("Authorization")) |
| 1880 | if teamID := teamAccountIDFromRequest(c); teamID != "" { |
| 1881 | return token, teamID, authorizationTeamID != "" |
| 1882 | } |
| 1883 | return token, authorizationTeamID, authorizationTeamID != "" |
| 1884 | } |
| 1885 | |
| 1886 | func splitAuthorizationTokenAndTeam(authHeader string) (string, string) { |
| 1887 | payload := strings.TrimSpace(authHeader) |