-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SO search with search scope results in 403 Forbidden #1475
Comments
Ref. Slack discussion, changing this to require base scope on search. |
…1476) <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Related Issue(s) - #1475 ## 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) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced authorization logic for the `ServiceProviderSearch` policy, improving specificity and security. - **Bug Fixes** - Refined error handling during initialization to ensure valid settings are used. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Her må jeg ha litt rettleding med tanke på setting av scope. Forstår vi skal ut i JWT landskapet (eller noe i den dur). Setter "Under test" og tar testing i løpet av kommende uke, |
Har avklart med Ole Jørgen at denne ikke lenger er testbar på samme måte som #1491 opphørte å være testbar. Er i utgangspunktet usikker på om Teststatus bør være NA eller Passed her. Basert på diskusjon og eksemplifisering så kan man si at denne er verifisert ved inspeksjon. Derfor settes Passed. |
Description
Using only the search scope,
digdir:dialogporten.serviceprovider.search
, onGET /api/v1/serviceowner/dialogs/
results in 403 ForbiddenThis is caused by a bad scope check in ClaimsPrincipalExtensions.GetUserType, it only checks for
digdir:dialogporten.serviceprovider
Expected behavior
200 OK
Actual behavior
403 Forbidden
The text was updated successfully, but these errors were encountered: