nipyapi icon indicating copy to clipboard operation
nipyapi copied to clipboard

Nifi 2.4.0 - OIDC authentication

Open jpjoux opened this issue 5 months ago • 11 comments

I am using nipyapi==0.22.0 In Nifi, no issue to authenticate by using OIDC

I am able to connect to our Identity Provider I am retrieving a token and I am looking for a processor group

set_service_auth_token(token=access_token)
pg = nipyapi.canvas.get_process_group(PROCESSING_GROUP_NAME, "name", False)

I have the following error when calling get_process_group :

  File "~/python3.11/site-packages/future/utils/__init__.py", line 406, in raise_from
    exec(execstr, myglobals, mylocals)
  File "<string>", line 1, in <module>
ValueError: {
"cause0":"java.lang.IllegalArgumentException: Identity cannot be null",
"message":"java.lang.IllegalArgumentException: Identity cannot be null",
"url":"/nifi-api/flow/process-groups/root",
"status":"500"
}

What is wrong ?

jpjoux avatar Sep 08 '25 16:09 jpjoux