Currently attempting to implement an oAuth 2 server in our internal business management app and would like our users to be able to login via their accounts to YouTrack via the oAuth 2 authentication provider.
So far I have the authorization flow working fine and can see the Bearer token being issued to the user details end point correctly. Using debug I can see the user details are collected via the bearer token and provided as a PHP stdClass object json_encode 'd and returned to the GET Request as the response.
However no user is being created in the YouTrack hub with these details and the user is left at the youtrack login page with no errors visible. I've mapped the columns as detailed here: https://www.jetbrains.com/help/youtrack/standalone/OAuth2-Authentication-Module.html#oauth-auth-module-settings
Any ideas if I should be returning the user details in a different format? Docs are a little scarce on how the details should be returned...