Surprisingly, I have your answer and found this thread while looking for a better way to connect to the Infor data lake. If you've found a better way, please let me know as I was hoping to find either a way to use the API directly or to use the JDBC on the data gateway server.
For the JDBC connection where you can't reference the ionapi file, you have to modify the connection string to include the ion api credentials.
Open the .ionapi file in an editor, like Notepad++, and copy out the contents. You need to encode this string for URLs, I recommend adding the MIME Tools plugin to Notepad++, hightlight the string and select Plugins - MIME Tools - URL Encode. Copy this new string.
Back to your jdbc connection string, it begins with jdbc:infordatalake://TENANT_NAME, after the tenant name, add "?ionApiCredentials=" followed by the new string you copied, like this:
?ionApiCredentials=your_copied_url_encoded_ion_api_string
The rest of the parameters in the connection string would then follow the end of that string. I'm just learning to use Spark in Fabric, but I suspect there's a way to store that ion api string as a secure key that can be referenced in that string, but for now the above works.