Open vsmart-duo opened 10 months ago
Hej @vsmart-duo - super excited to see you try it out :)
The error you see is likely due to SMTP not being able to send anything (I'm assuming here that it has no configuration at all).
The magic link is logged beforehand via debug, try clicking the link that's logged here:
[2023-11-07T14:29:12.229] [DEBUG] MagicLinkIdentityProvider - Sending magic link to <REDACTED> with link http://localhost:4726/login/callback/magic-link?token=<REDACTED>
If using just the default configuration, you will also need to use one of the predefined user emails here: https://github.com/klarna-incubator/gram/blob/main/config/default.ts#L103-L119
const sampleUsers: User[] = [
{
name: "User",
sub: "user@localhost", // Must be the same as sub provided by IdentityProvider for authz to work
mail: "user@localhost",
},
{
name: "Reviewer",
sub: "reviewer@localhost",
mail: "reviewer@localhost",
},
{
name: "Admin",
sub: "admin@localhost",
mail: "admin@localhost",
},
];
Otherwise I believe the app will not permit you in due to authz issues - the app will attempt a user lookup on the email address, then fail if it doesn't find it.
yes, that worked! π
First I tried clicking the link directly but as you expected it failed with "User not found"
Then following the instructions in the second comment I was able to login with user@localhost
π
Cool, let me know if you find any further issues. I think you're the first to actually try this out - so I appreciate the testing π
Hey @Tethik and team! Very exciting that Gram is open source now π
I tried following the Getting Started guide. The app started successfully but then I got stuck at the Login screen. When trying the "login via magic link" button, I got this error. I tried with 2 different email addresses:
[2023-11-07T14:28:04.172] [ERROR] NotificationSender - Failed to send notification 1: SMTP Error Code: undefined. See https://github.com/eleith/emailjs/blob/main/smtp/error.ts
Full error log here, emails and tokens redacted: