Created a generic access token handler where requirement can be injected in Program.cs.
No longer setting context failed if requirement isn't met as there might be multiple handlers. Only setting succeeded if everything runs ok.
Base class for actual validation of access token to avoid duplication of code.
Related Issue(s)
altinn/altinn-events#318
Verification
[x] Your code builds clean without any errors or warnings
[x] Manual testing done (required)
- [ ] Relevant automated test added (if you find this hard, leave it and we'll help out)
Description
Created a generic access token handler where requirement can be injected in Program.cs. No longer setting context failed if requirement isn't met as there might be multiple handlers. Only setting succeeded if everything runs ok.
Base class for actual validation of access token to avoid duplication of code.
Related Issue(s)
Verification
- [ ] Relevant automated test added (if you find this hard, leave it and we'll help out)Documentation