Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

108 oauth #156

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

108 oauth #156

wants to merge 4 commits into from

Conversation

nictownsend
Copy link
Contributor

@nictownsend nictownsend commented Dec 15, 2020

Resolves #108

- always return index if a path cannot be met
- security tests to ensure index is protected

Contributes to: strimzi#154

Signed-off-by: Nic Townsend <[email protected]>
- restructure ConfigFeatureFlag assets so they are no longer
exporting test code as runtime dependencies

Contributes to: strimzi#152

Signed-off-by: Nic Townsend <[email protected]>
- introduce passport
- add a passport local strategy for authentication
- introduce Authentication interface to contain the multiple
auth checks (authenticate, checkAuth, logout)
- scram router module for authentication, logout, and auth check
- no op for no auth
- extend auth support to provide additional functions to all modules
for checking auth, logging out
- remove empty placeholder file

Contributes to: strimzi#106

Signed-off-by: Nic Townsend <[email protected]>
@github-actions
Copy link

github-actions bot commented Dec 15, 2020

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/ConfigFeatureFlag.testassets.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 96.95% 96.99% 92.31% 92.86%
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 93.33% 92.54% 86.67% 84.62%
server/security/routeConfig.ts 100% 100% 100% 100%
server/security/router.ts 85.19% 85.19% 60% 60%
server/security/strategy/strategyFactory.ts 100% 100% 100% 100%
server/security/strategy/oauth/oauthAuthenticator.ts 77.78% 77.78% 50% 100%
server/security/strategy/scram/scramAuthenticator.ts 100% 100% 100% 100%

Triggered by commit: 2ee0ba3

@nictownsend nictownsend force-pushed the 108-oauth branch 2 times, most recently from 3f48b63 to de5bdde Compare December 15, 2020 18:35
@nictownsend
Copy link
Contributor Author

Finishing off the test coverage, but PR is here for review.

For compile purposes it's based off other PRs. Please only review the final commit (rest will be removed once in main branch).

- passport strategy
- new config for oidc routes

Contributes to: strimzi#106

Signed-off-by: Nic Townsend <[email protected]>
Base automatically changed from master to main March 25, 2021 11:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add OAUTH Passport.js strategy
1 participant