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

Cannot seem to register #7

Open
Supernova3339 opened this issue Apr 17, 2024 · 3 comments
Open

Cannot seem to register #7

Supernova3339 opened this issue Apr 17, 2024 · 3 comments

Comments

@Supernova3339
Copy link

{"EventId":0,"LogLevel":"Error","Category":"Aptabase.Features.Authentication.AuthController","Message":"Unable to validate auth token","Exception":"Microsoft.IdentityModel.Tokens.SecurityTokenMalformedException: IDX12741: JWT must have three segments (JWS) or five segments (JWE).    at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken\u0026 validatedToken)    at Aptabase.Features.Authentication.AuthTokenManager.ParseAuthToken(String token) in /work/src/Features/Authentication/AuthTokenManager.cs:line 63    at Aptabase.Features.Authentication.AuthController.HandleMagicLink(String token, CancellationToken cancellationToken) in /work/src/Features/Authentication/AuthController.cs:line 102","State":{"Message":"Unable to validate auth token","{OriginalFormat}":"Unable to validate auth token"}}

I made a generator to try and solve it, tried JWS/JWT ( generator uses firebase/php-jwt )
https://projects.superdev.one/10/4/16/jwt/

Nothing seems to work. Any ideas?

Current AUTH_SECRET ( JWS, 3 segments )

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJlYXN5cGFuZWwiLCJhdWQiOiJlYXN5cGFuZWwiLCJleHAiOm51bGwsInVpZCI6IjYxMiJ9.MGV6DqAXylvkDkxv9WTTL_zUVP5_nL2GtR3XC_WIUrs
@goenning
Copy link
Member

AUTH_SECRET doesn't have to be a JWT, it's just a very long and strong secret
It's then used to generate a JWT for sign in

@Supernova3339
Copy link
Author

Supernova3339 commented Apr 18, 2024 via email

@Supernova3339
Copy link
Author

tried with multiple, nothing works. could you generate one for me so I can see if that works? cheers 🎉

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

No branches or pull requests

2 participants