Calling an Identiy Provider API Issues with automating token