Librum-Server icon indicating copy to clipboard operation
Librum-Server copied to clipboard

"JWTValidIssuer" and "JWTKey"

Open shahram7 opened this issue 1 year ago • 3 comments

Hi there, first of all thank you very much for your time and effort. could you please explain me about the "JWTValidIssuer" and "JWTKey" ? should we use an external service? if yes? which one is suggested? btw it would be great and a lot easier if we could pull the docker image from docker hub : (

i didn't change the JWTValidIssuer and JWTKey

Running in selfhosted mode, skipping AzureKeyVault configuration
warn: Microsoft.EntityFrameworkCore.Model.Validation[10400]
      Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
      Storing keys in a directory '/var/lib/librum-server/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to https://aka.ms/aspnet/dataprotectionwarning
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
      No XML encryptor configured. Key {34bb44af-cb7e-41fa-8009-ad9fecc6b31f} may be persisted to storage in unencrypted form.
warn: Application.BackgroundServices.DeleteUnconfirmedUsers[0]
      Deleting unconfirmed users
warn: Microsoft.AspNetCore.Server.Kestrel[0]
      Overriding address(es) 'http://*:8080'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
      Failed to determine the https port for redirect.

Best Regards, Shahram

shahram7 avatar Dec 18 '23 17:12 shahram7

You don't need external services for this. The JWTKey should simply be a long (~35 chars) random string of characters and the issues could e.g. be LibrumServer.

DavidLazarescu avatar Dec 19 '23 07:12 DavidLazarescu

Same error here dunno what to do to make it work

GregTroar avatar Dec 19 '23 08:12 GregTroar