Answer the question
In order to leave comments, you need to log in
How to open access to /oauth/token for an unauthorized user in Bitrix24 (box)?
The task is to get a new token for the rest api.
With a get, post request for /oauth/token?... the site returns a page with a login form.
There is a file .access.php in the root of the site, it contains the line
$PERM["oauth"]["*"]="R";
There are no .access.php files in the /oauth directory and subdirectories.
Can you tell me what needs to be configured?
Answer the question
In order to leave comments, you need to log in
If your application renews authorization tokens using refresh_token, then there are two options: get a new pair of tokens by making a request to
xxx.bitrix24.xxx/oauth/token/?grant_type=authorization_code...
or to the authorization server
oauth.bitrix.info/ oauth/token/?grant_type=authorization_code...
In the case of cloudy Bitrix24, both options will work equally well, since cloudy Bitrix24 will simply "forward" your request to the real authorization server, but boxed Bitrix24 may not do this.
Therefore, recommendation number 2 - to update tokens, always contact the authorization server directly . This will work for both the cloud and the box.
From here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question