wonderful-quill-11255
05/30/2023, 12:06 PMv0.10.1
I'm using the python-sdk and talking to the gms via the frontend-proxy. I'm authenticating via the frontends /logIn
endpoint setting the Cookie
header on my DataHubGraphConfig
before making further api calls.
An example api call I'm making is client.get_aspect(entity_urn=entity_urn, aspect_type=DatasetProperties)
I have a policy that says all users have all privileges.
When I run the get_aspect call, I get a 401 - Unauthorized on the client side and a "User is unauthorized to get aspect for ..." on the gms side. This flow worked before I enabled the auth+auth feature.
However, if I log in to the UI via the same user, I have no problem viewing the dataset page for my example entity.
I'm not sure where to look for the problem here. I'll be grateful if someone could give me a pointer or two.wonderful-quill-11255
05/30/2023, 12:52 PM/entities
vs /aspects
), and its a POST instead of GET request as well. Not sure if this is a hint of something.wonderful-quill-11255
05/30/2023, 1:33 PMGET_ENTITY_PRIVILEGE
which protects the /aspects
endpoint but it seems it's not possible to create a policy that includes this privilege via the GUI. Next attempt, try to provision such a policy at deployment instead.wonderful-quill-11255
05/30/2023, 2:04 PMmodern-artist-55754
05/31/2023, 2:29 AMwonderful-quill-11255
05/31/2023, 6:08 AM