Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
icedream Posted March 13, 2019 Posted March 13, 2019 Hi, When implicating a new OAuth 2.0 based login handler, I get some problems, as tokenEndpoint returns string not json data. For example, in Facebook GET https://graph.facebook.com/v3.2/oauth/access_token? client_id={app-id} &redirect_uri={redirect-uri} &client_secret={app-secret} &code={code-parameter} will return { "access_token": {access-token}, "token_type": {type}, "expires_in": {seconds-til-expiration} } But in this case, it returns access_token={access-token}&token_type={type}&expires_in={seconds-til-expiration} I have no idea how to support this handler, could anyone help?
bfarber Posted March 13, 2019 Posted March 13, 2019 You will likely need to create a new login handler class that extends the OAuth2\Custom class, and override _handleAuthorizationResponse() method (defined in \IPS\Login\OAuth2)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.