Closed mgalil closed 5 years ago
all tables are from imomsw database.
"JwtIssuerOptions": {
"Issuer": "placeholderIssuer",
"Audience": "localhost"
}
Add this to the bottom of your appsettings file. so it looks like this:
{ "ConnectionStrings": { "OpenSSN": "User ID=postgres;Password=******;Host=localhost;Port=5432;Database=imomsw;", "UserDatabase": "" }, "AppSettings": { "Secret" : "TopSekritSecretToken" }, "JwtIssuerOptions": { "Issuer": "placeholderIssuer", "Audience": "localhost" } }
Unfortunately .. get the same error
How is your appsettings file now? Copy the entire file please
You are missing the JwtIssuerOptions i mentioned in my above comment.
like this:
That error means that your password for the postgres user is wrong. I see in your appsettings you have written "password=*****", remove this So it only says; "OpenSSN": "User ID=user;Host=localhost;Port=5432;Database=imomsw;",
Unless you plan on using another user you set up yourself, then you have to write the password in that field.
{ "ConnectionStrings": { "OpenSSN": "User ID=user;Host=localhost;Port=5432;Database=imomsw;", "UserDatabase": "" }, "AppSettings": { "Secret" : "TopSekritSecretToken" }, " JwtIssuerOptions": { "Issuer": "placeholderIssuer", "Audience": "localhost" } }
It says that your user has a password. So add the password you chose { "ConnectionStrings": { "OpenSSN": "User ID=user;Password=YOURPASSWORDHERE;Host=localhost;Port=5432;Database=imomsw;", "UserDatabase": "" }, "AppSettings": { "Secret" : "TopSekritSecretToken" }, " JwtIssuerOptions": { "Issuer": "placeholderIssuer", "Audience": "localhost" } }
I applied the above appsettings.json you mentioned above, get the same error :
It says that the password is wrong. Are you sure you wrote the correct password? What did you write as a password when creating the user? And are you writing the same password in the appsettings?
the password for postgres user is "Root1234" as written in appsettings.
But you aren't using the postgres user. You are referencing a user named "user". Did you create a user in pgadmin named "postgres" with the password "Root1234" ? If so, use that in the appsettings, not "user".
It says you are using the user named "user" in your appsettings file. You have to use a user that exists.
Error : Object Object
no red text, just green "Info" lines.
Can you share your appsettings again? The way it looks now I mean
You have a space " JwtIssuerOptions" it should be "JwtIssuerOptions"
Did this fix your issues?
thank you very much Bardlokas it's working with server and client .. but there is a bit problem with client access, all icons and images not appeared as below:
Linking between client/server projects or something might not have been built correctly. If you open localhost:5000 it should display correctly.
with localhost:5000 all images displayed correctly, but the problem is only with localhost:4201
Rename the folder at this location: IMO-Maritime-Single-Window\IMOMaritimeSingleWindow\Client\src\assets\images\Flags to "flags". As in: set it all to lower case.
It's working .. thank you very bardlokas, Now and finally I can close this issue, thank you.
Hi bardlokas .. I can access client (localhost:4201) remotely but server (localhost:5000) only locally, is that only the difference between them, client for remote access and server for local access.
After I have installed the latest version, I get login screen and entered credentials agent@imo-msw.org/agent, faced the following error "500 Internal server error" and imo logo did not displayed.