diff --git a/src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/DialogTokenMiddleware.cs b/src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/DialogTokenMiddleware.cs index cda932e11..084857991 100644 --- a/src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/DialogTokenMiddleware.cs +++ b/src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/DialogTokenMiddleware.cs @@ -24,8 +24,7 @@ public DialogTokenMiddleware(RequestDelegate next, IOptions var keyPair = applicationSettings.Value.Dialogporten.Ed25519KeyPairs.Primary; _publicKey = PublicKey.Import(SignatureAlgorithm.Ed25519, Base64Url.Decode(keyPair.PublicComponent), KeyBlobFormat.RawPublicKey); - // _issuer = applicationSettings.Value.Dialogporten.BaseUri.AbsoluteUri.TrimEnd('/') + DialogTokenIssuerVersion; - _issuer = "https://altinn-dev-api.azure-api.net/dialogporten" + DialogTokenIssuerVersion; + _issuer = applicationSettings.Value.Dialogporten.BaseUri.AbsoluteUri.TrimEnd('/') + DialogTokenIssuerVersion; } public Task InvokeAsync(HttpContext context)