-
Notifications
You must be signed in to change notification settings - Fork 27
feat: local authentication #128
base: main
Are you sure you want to change the base?
Conversation
Work to be done:
|
PR ReportBundle SizesTest CoverageView test coverage
Triggered by commit: 8d00115 |
41a4bee
to
51bbe41
Compare
faddc8d
to
ef8a510
Compare
Scenario Outline: If assets can be served without authentication, the client module returns the appropriate <StatusCode> return code for a request of <Asset> | ||
Given a server with a 'client' configuration | ||
And There are files to serve | ||
And authentication type 'none' is required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Being picky, behaviourally/grammatically, would it be better to have three seperate cases?
- And no authentication of the user is required
- And authentication via an identity provider 'type' of the user is required
- And username/password authentication of the user is required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I had different scenarios to cover that below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I was more refering to the definition of the step - does a user care authentication type is none, or that they are/have been authenticated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My opinion is that in these steps you're a "user" of the server. So you care around the config you have used to create the server.
f7f6048
to
3a8e903
Compare
Scenario Outline: If assets can be served without authentication, the client module returns the appropriate <StatusCode> return code for a request of <Asset> | ||
Given a server with a 'client' configuration | ||
And There are files to serve | ||
And authentication type 'none' is required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I was more refering to the definition of the step - does a user care authentication type is none, or that they are/have been authenticated
3a8e903
to
e727fb7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seem to be some unrelated changes caught up in this PR. Please can you remove them and submit them separately.
218f644
to
10298e8
Compare
@pmuir sorted - they were whitespace changed from linting whole repo instead of staged files |
- 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]>
10298e8
to
479ef00
Compare
auth checks (authenticate, checkAuth, logout)
Contributes to: #106
Signed-off-by: Nic Townsend [email protected]