I have removed the Authorize attribute on PartiesController for Register to allow services without a User context to call its actions. In the actual Register component, the "PlatformAccess" policy is applied(link), indicating that only services should be authorized to call it. Because no PlatformAccessToken is present when testing an app locally, calls to this controller will be unauthorized with 401 status code. Hence why I have removed the attribute.
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)
Not applicable
[ ] All tests run green
Not applicable
Documentation
[ ] User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)
not applicable
Description
I have removed the Authorize attribute on PartiesController for Register to allow services without a User context to call its actions. In the actual Register component, the "PlatformAccess" policy is applied(link), indicating that only services should be authorized to call it. Because no PlatformAccessToken is present when testing an app locally, calls to this controller will be unauthorized with 401 status code. Hence why I have removed the attribute.
Verification
Not applicable
Not applicable
Documentation
not applicable