MCPcopy Create free account
hub / github.com/aurora-develop/aurora / authorizationTokenAndTeam

Function authorizationTokenAndTeam

initialize/handlers.go:1878–1884  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

1876}
1877
1878func 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
1886func splitAuthorizationTokenAndTeam(authHeader string) (string, string) {
1887 payload := strings.TrimSpace(authHeader)

Callers 2

Calls 2

teamAccountIDFromRequestFunction · 0.85

Tested by 1