Add custom HTTP handler for authentication errors #561
Annotations
2 errors and 13 warnings
build:
auth_test.go#L373
shadow: declaration of "err" shadows declaration at line 362 (govet)
|
build
issues found
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: wbari/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build
The following actions uses Node.js version which is deprecated and will be forced to run on node20: wbari/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build
Restore cache failed: Dependencies file is not found in /home/runner/work/auth/auth. Supported file pattern: go.sum
|
build:
middleware/auth.go#L64
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
|
build:
middleware/auth.go#L60
exported: exported type DefaultAuthErrorHttpHandler should have comment or be unexported (revive)
|
build:
middleware/auth.go#L83
exported: comment on exported method Authenticator.AuthWithErrorHttpHandler should be of the form "AuthWithErrorHttpHandler ..." (revive)
|
build:
middleware/auth.go#L226
exported: comment on exported method Authenticator.AdminOnlyWithErrorHttpHandler should be of the form "AdminOnlyWithErrorHttpHandler ..." (revive)
|
build:
middleware/auth.go#L277
exported: comment on exported method Authenticator.RBACwithErrorHttpHandler should be of the form "RBACwithErrorHttpHandler ..." (revive)
|
build:
middleware/auth.go#L27
var-naming: struct field AuthErrorHttpHandler should be AuthErrorHTTPHandler (revive)
|
build:
middleware/auth.go#L50
var-naming: type AuthErrorHttpHandler should be AuthErrorHTTPHandler (revive)
|
build:
middleware/auth.go#L85
var-naming: method AuthWithErrorHttpHandler should be AuthWithErrorHTTPHandler (revive)
|
build:
middleware/auth.go#L95
var-naming: method parameter errorHttpHandler should be errorHTTPHandler (revive)
|
build:
middleware/auth.go#L229
var-naming: method AdminOnlyWithErrorHttpHandler should be AdminOnlyWithErrorHTTPHandler (revive)
|