Ideally when generating access token GenerateAccessToken method from AccessTokenGenerator class should reuse the certificate which is not doing right now. This issue got pointed out while analysing another issue from https://github.com/Altinn/altinn-events/issues/241
Description of the bug
Ideally when generating access token
GenerateAccessToken
method fromAccessTokenGenerator
class should reuse the certificate which is not doing right now. This issue got pointed out while analysing another issue from https://github.com/Altinn/altinn-events/issues/241Steps To Reproduce
https://github.com/Altinn/altinn-accesstoken/blob/58534c13bac1522d1a972594168d93b514e87958/src/Altinn.Common.AccessTokenClient/Services/AccessTokenGenerator.cs#L45
Implementation of
GenerateAccessToken
Additional Information
No response