-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add auth scenario support #69
Comments
@mesilov any suggestions? |
Having the same issue. No response from @mesilov? I've been through the docs again and again, and I think the answer involves using an endpoint to retrieve the AUTH_ID and REFRESH_ID, but it's not clear how that works. I think the documentation assumes we understand how OAuth 2.0 works, but I honestly find it beyond confusing. Can someone explain it in clear wording for us? |
I ended up blending the 3-legged User authentication with an automatic 1-hour refresh cycle to keep the access token alive. This seems to be working very well so far. So first step was to authenticate as a human user, but then have a cronjob refresh the token once an hour. Workaround until I get a solid answer to server-to-server authentication. I tried one of the Partners, but they wanted to charge 3 hours for consultation, and I see this as a 10-minute question/answer. |
It`s work for me: full syntax:
application_scope - example ["pull", "pull_channel", "messageservice", "log", "user", "im"] http://prntscr.com/jmboxq domain - your b24 domain, example: b24-aqm4rt.bitrix24.ru member_id, access_token, refresh_token we can get in method getFirstAccessToken. I add this methods in Bitrix24 class (file /src/bitrix24.php) :
|
Here is the refactored version of the
|
Found this package. Hope this helps: |
Hello
Hope you are well!
Can you please explain what should I pass in below mentioned code:
$obB24App->setDomain($arParams['DOMAIN']);
$obB24App->setMemberId($arParams['MEMBER_ID']);
$obB24App->setAccessToken($arParams['AUTH_ID']);
$obB24App->setRefreshToken($arParams['REFRESH_ID']);
I have checked my Bitrix account too but I did not find the sufficient information.
Regards,
Tripti
The text was updated successfully, but these errors were encountered: