strimzi-ui
strimzi-ui copied to clipboard
feat: local authentication
- introduce passport
- add a passport local strategy for authentication
- introduce Authentication interface to contain the multiple auth checks (authenticate, checkAuth, logout)
Contributes to: strimzi/strimzi-ui#106
Signed-off-by: Nic Townsend [email protected]
Work to be done:
- [x] Further integration tests
- [x] MockAPI for
/login
purpose
PR Report
Bundle Sizes
Test Coverage
View test coverage
File | Lines | Statement | Functions | Branches |
---|---|---|---|---|
Total | 100% | 100% | 100% | 100% |
client/Bootstrap/Navigation/useRouteConfig/useRouteConfig.hook.ts | 100% | 100% | 100% | 100% |
client/Contexts/ConfigFeatureFlag/Context.tsx | 100% | 100% | 100% | 100% |
client/Contexts/ConfigFeatureFlag/FeatureFlag.view.tsx | 100% | 100% | 100% | 100% |
client/Contexts/Introspect/Introspection.ts | 100% | 100% | 100% | 100% |
client/Contexts/Logging/Context.tsx | 100% | 100% | 100% | 100% |
client/Hooks/useConfigFeatureFlag/useConfigFeatureFlag.ts | 100% | 100% | 100% | 100% |
client/Hooks/useLogger/Hook.ts | 100% | 100% | 100% | 100% |
client/Panels/Home/Home.tsx | 100% | 100% | 100% | 100% |
client/Utils/sanitise/sanitise.ts | 100% | 100% | 100% | 100% |
client/Utils/window/window.ts | 100% | 100% | 100% | 100% |
File | Lines | Statement | Functions | Branches |
---|---|---|---|---|
Total | 100% | 100% | 100% | 100% |
server/api/controller.ts | 100% | 100% | 100% | 100% |
server/api/router.ts | 100% | 100% | 100% | 100% |
server/client/controller.ts | 100% | 100% | 100% | 100% |
server/client/router.ts | 100% | 100% | 100% | 100% |
server/config/controller.ts | 100% | 100% | 100% | 100% |
server/config/router.ts | 100% | 100% | 100% | 100% |
server/core/app.ts | 100% | 100% | 100% | 100% |
server/core/modules.ts | 100% | 100% | 100% | 100% |
server/log/router.ts | 100% | 100% | 100% | 100% |
server/mockapi/data.ts | 100% | 100% | 100% | 100% |
server/mockapi/router.ts | 100% | 100% | 100% | 100% |
server/security/bootstrap.ts | 100% | 100% | 100% | 100% |
server/security/routeConfig.ts | 100% | 100% | 100% | 100% |
server/security/router.ts | 100% | 100% | 100% | 100% |
server/security/strategy/strategyFactory.ts | 100% | 100% | 100% | 100% |
server/security/strategy/scram/scramAuthenticator.ts | 100% | 100% | 100% | 100% |
Triggered by commit: 8d001155e391907c8e7cd57864989f68f7dbec8f
@pmuir sorted - they were whitespace changed from linting whole repo instead of staged files