-
Notifications
You must be signed in to change notification settings - Fork 1
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/login frontend integration #66
Changes from all commits
a553e01
13f16f3
4da4871
62497b4
bcbf422
ffce179
43be2f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ export class AuthClientController { | |
private readonly backendUserSerice: BackendUserService, | ||
private readonly loginDataSerive: UserLoginDataService, | ||
private readonly authClientService: AuthClientService, | ||
) {} | ||
) { } | ||
|
||
/** | ||
* Gets all auth clients that exist in the system. | ||
|
@@ -156,7 +156,8 @@ export class AuthClientController { | |
} else { | ||
newClient.isValid = true; | ||
} | ||
if (input.requiresSecret != undefined) { | ||
newClient.clientSecrets = [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this list nonempty or null before, or why do you assign an empty list? Especially, since it is not filled in the remaining method. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. afaik it's undefined before |
||
if (input.requiresSecret !== undefined) { | ||
newClient.requiresSecret = input.requiresSecret; | ||
} else { | ||
newClient.requiresSecret = true; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,7 @@ export abstract class StrategyUsingPassport extends Strategy { | |
passportStrategy, | ||
{ | ||
session: false, | ||
state: jwtService.sign(authStateData), | ||
state: jwtService.sign(authStateData), // TODO: check if an expiration and/or an additional random value are needed | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume the TODO comment is on intention. Perhaps also create an issue for it so we do not miss the TODO? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
...this.getAdditionalPassportOptions(strategyInstance, authStateData), | ||
}, | ||
(err, user: AuthResult | false, info) => { | ||
|
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.
Should such an ID be public visible in the repository?
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.
this one is just for development
it's just a random UUID, imho it does not really matter
of course you should never ever deploy it in production using dev mode