I
I
Ivan Shumakov2019-09-10 09:03:48
OAuth
Ivan Shumakov, 2019-09-10 09:03:48

Where can I find Bitrix 24 RestAPI data for league/oauth2-client?

In the library for working with OAuth 2.0 league/oauth2-client https://github.com/thephpleague/oauth2-client , you need to specify urlResourceOwnerDetails among other information to use it. Where can I get this url? (I didn't find it in the documentation)

$provider = new \League\OAuth2\Client\Provider\GenericProvider([
    'clientId'                => APP_ID,    // The client ID assigned to you by the provider
    'clientSecret'            => APP_SECRET_CODE,   // The client password assigned to you by the provider
    'redirectUri'             => APP_REG_URL,
    'urlAuthorize'            => 'https://bitrix.mysite.ru/oauth/authorize',
    'urlAccessToken'          => 'https://oauth.bitrix.info/oauth/token',
    'urlResourceOwnerDetails' => ?
]);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question