Altinn / altinn-accesstoken

Client and server libraries for simple authorization of API calls
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

`GenerateAccessToken` method from `AccessTokenGenerator` class not reusing the certificate #81

Closed khanrn closed 8 months ago

khanrn commented 8 months ago

Description of the bug

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

Steps To Reproduce

  1. https://github.com/Altinn/altinn-accesstoken/blob/58534c13bac1522d1a972594168d93b514e87958/src/Altinn.Common.AccessTokenClient/Services/AccessTokenGenerator.cs#L45

  2. Implementation of GenerateAccessToken

Additional Information

No response