OIDC cleanup #234
No reviewers
Labels
No labels
backend
bug
CI
dependencies
design
documentation
duplicate
enhancement
frontend
github_actions
good first issue
help wanted
invalid
javascript
question
refactoring
security
tooling
UX
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
NBIS/sda-download-ui!234
Loading…
Reference in a new issue
No description provided.
Delete branch "oidc-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Now that the project is mature enough it is possible to identify which oidc resources are essential for the webapp and what can be dropped.
This PR cleans up any server fetch of unnecessary OIDC resources, in the spirit of following the data minimization principle for enhancing privacy and security.
Type of change
List of changes made
subclaim suffices.subis found empty.oidcExtraScopes: string[]insdad-config.jsonso that if sda-download backend ever needs these or any extra scope they can be passed to the client OAuth configuration upon deployment.Testing
For the end-user, the only change is how many scopes they are asked to consent to on the LSAAI page when redirected there upon Sign-in.
"oidcExtraScopes": ["ga4gh_passport_v1", "eduperson_entitlement"],insdad-config.jsonand bring it up again.Run sdad as usual. Sign-out and then sign-in again. In the LSAAI's approval page you should now see three boxes to tick (scope).
Definition of Done checklist
I have made an effort making the commit history understandable
I have performed a self-review of my own code and commented any hard-to-understand areas
Existing tests are passing and I wrote unit tests for new functionality
My changes generate no new warnings
Documentation Updated (if applicable):
Looks good. Seems like a nice adjustment.