-
Notifications
You must be signed in to change notification settings - Fork 22
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
storage.modify scope not honoured by scitokens-cpp #27
Comments
storage.modify
scope not honoured by scitokens-cpp
Hi @bbockelm, can you comment on this? |
@bbockelm kind reminder. |
Hi, We are looking into this with the change in #30 . We are reviewing the change now. |
Hi, |
You are right, storage.modify is not honored. How would storage.modify be mapped to read/write? Should it be considered a "write" authorization? |
You can see the precise definition on what's expected from storage.modify here: |
Right, I read the definition the other day as well. But I'm curious what the scitokens-cpp library should do? The library primarily translates from the WLCG token profile to the SciTokens profile. In this case, it would simply translate the storage.modify to write access. Does that sound correct to you? If that's the case, it should be a simple change to add storage.modify = (SciTokens) write. |
@djw8605 - Xavi bumped me on this. Indeed, I think we should just map WLCG's |
Ok, can do. @andreaceccanti where do you get scitokens-cpp from? EPEL or OSG? EPEL has a bit of a delay due to testing and karma. |
I personally get it from EPEL. Are you recommending to use OSG? |
Nope, EPEL is fine. I'll push the update this morning and reply here when it is done. |
@djw8605 Typically EPEL, but a fast track OSG repo will work fine for our testbed, thanks! |
The builds are now in testing for EPEL: Please leave positive karma if it works for you. |
Hi, I can confirm that now everything works as expected. Thanks! |
Hi,
while testing scope-based authz support in XRootD with @dciangot and @riccardodimaria we noticed that the scitokens library is not compliant with the WLCG profile. The storage.modify scope, in particular, is not honoured. Probably the cause of this is the following code:
scitokens-cpp/src/scitokens_internal.cpp
Line 583 in 746a79c
There's no "storage.write" scope in the WLCG profile.
And probably this shows up only in compatibility mode, which is however used by default IIUC.
The text was updated successfully, but these errors were encountered: