Authentication in nsi-ws for DotNET 6.0.0
Hi! We are trying to upgrade to the new DotSTAT - testing environment to release DotNET 6.0.0 and JS 7.2.1 and we are facing some challenges with the authentication as I keep receiving this message:
nsiws-stable | info: Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler[1]
nsiws-stable | Failed to validate the token.
nsiws-stable | Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Did not match: validationParameters.ValidAudience: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]' or validationParameters.ValidAudiences: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.
We are using Docker installation approach and I have changed the following in docker-compose.yml file
auth__clientId: app
auth__showPii: "true" (hoping to get better error message)
We have the following in .env file:
AUTH_ENABLED=true
KEYCLOAK_HOST=10.22.29.173
Thanks
Edited by Mohammad