MCPcopy
hub / github.com/devtron-labs/devtron / randKey

Function randKey

pkg/auth/user/UserAuthService.go:150–157  ·  view source on GitHub ↗

* #nosec */

()

Source from the content-addressed store, hash-verified

148
149/* #nosec */
150func randKey() []byte {
151 b := make([]byte, 32)
152 _, err := rand.Read(b)
153 if err != nil {
154 util.GetLogger().Error(err)
155 }
156 return b
157}
158
159// authorize verifies a bearer token and pulls user information form the claims.
160func authorize(ctx context.Context, bearerToken string) (*User, error) {

Callers 5

UserAuthService.goFile · 0.85
NewUserAuthServiceImplFunction · 0.85
NewUserCommonServiceImplFunction · 0.85
NewUserServiceImplFunction · 0.85
NewRoleGroupServiceImplFunction · 0.85

Calls 3

GetLoggerFunction · 0.92
ReadMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…