aptabase / self-hosting

Configuration and Documentation for Self-Hosting Aptabase
30 stars 7 forks source link

Cannot seem to register #7

Open Supernova3339 opened 2 months ago

Supernova3339 commented 2 months ago
{"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 commented 2 months ago

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 commented 2 months ago

Is there a character minimum?

On Thu, Apr 18, 2024, 3:38 AM Guilherme Oenning @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/aptabase/self-hosting/issues/7#issuecomment-2063333649, or unsubscribe https://github.com/notifications/unsubscribe-auth/APESZJXJMTQX6TEZKDLLMNLY56A6RAVCNFSM6AAAAABGLSKOM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRTGMZTGNRUHE . You are receiving this because you authored the thread.Message ID: @.***>

Supernova3339 commented 2 months ago

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