Skip to content

Commit 10298e8

Browse files
committedDec 10, 2020
feat: local authentication
- 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]>
1 parent 087cdc3 commit 10298e8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1199
-271
lines changed
 

‎config/static.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ const client: Config<Literal> = {
1919
const server: Config<Literal> = {
2020
defaultConfig: {
2121
configValue: {
22-
authentication: {
23-
strategy: 'none',
24-
},
2522
client: {
2623
configOverrides: {},
2724
transport: {},
@@ -40,6 +37,9 @@ const server: Config<Literal> = {
4037
contextRoot: '/',
4138
port: 9080,
4239
transport: {},
40+
authentication: {
41+
type: 'none',
42+
},
4343
},
4444
session: {
4545
name: 'strimzi-ui',

‎linting/eslint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const rulesets = [
1212

1313
const customRules = {
1414
// prefer spaces (2) over tabs for indentation - tab width can be changed, space cannot
15-
indent: ['error', 2],
15+
indent: ['error', 2, { SwitchCase: 1 }],
1616
// all lines to have semicolons to end statements
1717
semi: ['error', 'always'],
1818
};

0 commit comments

Comments
 (0)