Skip to content
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

Merged
merged 7 commits into from
Nov 18, 2023

Conversation

nk-coding
Copy link
Contributor

probably more work to do, but I want to make a realease...

Copy link
Member

@spethso spethso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comments.

### To use it for oauth, set a redirect url
### The clientId of the created/found auth client will be printed to the console on startup
#GROPIUS_DEFAULT_AUTH_CLIENT_NAME=initial-client
#GROPIUS_DEFAULT_AUTH_CLIENT_ID=01234567-89ab-cdef-fedc-ba9876543210
Copy link
Member

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?

Copy link
Contributor Author

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

@@ -156,7 +156,8 @@ export class AuthClientController {
} else {
newClient.isValid = true;
}
if (input.requiresSecret != undefined) {
newClient.clientSecrets = []
Copy link
Member

Choose a reason for hiding this comment

The 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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

afaik it's undefined before

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The 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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@spethso spethso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open questions were answered. PR is ready to merge.

@nk-coding nk-coding merged commit de0ece4 into main Nov 18, 2023
2 checks passed
@nk-coding nk-coding deleted the feature/login-frontend-integration branch November 18, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants