hi! We are trying to connect to our DataHub insta...
# all-things-deployment
p
hi! We are trying to connect to our DataHub instance using emitter from python:
Copy code
from datahub.emitter.rest_emitter import DatahubRestEmitter

# Create an emitter to DataHub over REST
emitter = DatahubRestEmitter(gms_server="<https://our_custom_domain/api/gms>", extra_headers={},
                             token="PAT_token")

# Test the connection
emitter.test_connection()
We have metadata authentication enabled, but getting following error:
Copy code
got an authentication error: Invalid IAP credentials: JWT signature is invalid
we are forwarding from port 443 to 9002, connection itself doesn't seem to be an issue, getting
signature is invalid
error. Any pointers on what we are doing in the wrong way?
a
Hi - this is strange, could you double-check if your token is valid & works with other methods?
p
We think its due to IAP (we added login via Google) - it seems that API wants the Google auth in the same place as the token. Anyone had that?