Skip to content

Commit

Permalink
Fix BaseUri on localhost trailing slash discrepancy on OAuth metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
elsand committed Sep 17, 2024
1 parent ca74667 commit 4ac6b02
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ public GetOauthAuthorizationServerQueryHandler(

public async Task<GetOauthAuthorizationServerDto> Handle(GetOauthAuthorizationServerQuery request, CancellationToken cancellationToken)
{
var issuerUrl = _applicationSettings.Dialogporten.BaseUri.AbsoluteUri.TrimEnd('/') + "/api/v1";
return await Task.FromResult(new GetOauthAuthorizationServerDto
{
Issuer = _applicationSettings.Dialogporten.BaseUri + "api/v1",
JwksUri = _applicationSettings.Dialogporten.BaseUri + "api/v1/.well-known/jwks.json"
Issuer = issuerUrl,
JwksUri = $"{issuerUrl}/.well-known/jwks.json"
});
}
}

0 comments on commit 4ac6b02

Please sign in to comment.