Hi Erik,

You are using a remote Data Adapter and a local Metadata Adapter. To handle authentication from your PHP code you need to use a remote Metadata Adapter too.

To do that, instead of...