-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: refactor auth action #2746
Conversation
.vscode/settings.json
Outdated
@@ -1,5 +1,7 @@ | |||
{ | |||
"editor.rulers": [80], | |||
"editor.rulers": [ | |||
80 |
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.
will revert it.
packages/authentication/src/types.ts
Outdated
|
||
export interface AuthenticationStrategy { | ||
name: string; | ||
isPassportStrategy?: boolean; |
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.
-1
AFAIK, passport strategies use different API contract than LB4 AuthenticationStrategy
. IMO, we should tell people to use StrategyAdapter
to convert Passport strategies into LB strategies.
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.
@bajtos yeah that flag is added at the wrong place, see my comment 53cfeeb#r33223459 .
792a108
to
53cfeeb
Compare
cddb4ea
to
6a196cf
Compare
Resolve authentication strategies registered via extension point
53f74bd
to
0c022bb
Compare
b727dff
to
92b10a2
Compare
Resolve authentication strategies registered via extension point
Add tests for registered jwt authentication strategy. And fixup some copyright comments.
removed duplicate interface definitions
moved acceptance artifacts to fixtures folder
Move authentication action and strategy providers into main code
45f1fd4
to
bcf041e
Compare
6096b8b
to
f016ff5
Compare
d484f7f
to
519e0d1
Compare
42eb051
to
5e2ab05
Compare
Close this one in favor of #2822 |
Description
connect to #2467
This PR starts to refactor the authentication action to takes in a getter for the newly created AuthenticationStrategy interface in #2688.
StrategyAdapter
is also refactored to implement theAuthenticationStrategy
interfaceChecklist
馃憠 Read and sign the CLA (Contributor License Agreement) 馃憟
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated馃憠 Check out how to submit a PR 馃憟