-
Notifications
You must be signed in to change notification settings - Fork 48
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
feat/arborist-sync #613
feat/arborist-sync #613
Conversation
9ece790
to
fe48f1c
Compare
This PR contains code that is not formatted correctly according to Expand the full diff to see formatting changes--- fence/__init__.py
+++ blackened
@@ -15,11 +15,11 @@
from fence.oidc.server import server
from fence.rbac.client import ArboristClient
from fence.resources.aws.boto_manager import BotoManager
from fence.resources.openid.google_oauth2 import GoogleOauth2Client as GoogleClient
from fence.resources.openid.microsoft_oauth2 import (
- MicrosoftOauth2Client as MicrosoftClient
+ MicrosoftOauth2Client as MicrosoftClient,
)
from fence.resources.openid.orcid_oauth2 import OrcidOauth2Client as ORCIDClient
from fence.resources.storage import StorageManager
from fence.resources.user.user_session import UserSessionInterface
from fence.error_handler import get_error_response
--- tests/data/test_data.py
+++ blackened
@@ -605,12 +605,13 @@
)
response = client.get(path, headers=headers, query_string=query_string)
assert response.status_code == 403
-def test_initialize_multipart_upload(app, client, auth_client, encoded_creds_jwt, user_client):
-
+def test_initialize_multipart_upload(
+ app, client, auth_client, encoded_creds_jwt, user_client
+):
class MockResponse(object):
def __init__(self, data, status_code=200):
self.data = data
self.status_code = status_code
This formatting comment was generated automatically by a script in uc-cdis/wool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should say this is a breaking change if you're using arborist <{{new version with db}}, there's a heading for that in the PR description template. it's not really a breaking change to fence, but we should make it obvious this will not work with old arborist somehow in the release notes. Also, do you know why jenkins didn't run integration tests?
P.S. will look through actual code code in a bit :P
fence/jwt/token.py
Outdated
@@ -481,7 +479,6 @@ def generate_id_token( | |||
|
|||
# If not provided, assume auth time is time this ID token is issued | |||
auth_time = auth_time or iat | |||
policies = [policy.id for policy in user.policies] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to keep these in the id token, right? just remove from access token?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to remove all the policies from everything; they can be retrieved from the user info endpoint now
was looking through code, seems like |
b9ec596
to
f6dcf97
Compare
Improvements
Breaking Changes