Comments (2)
using devtest account:
in network response showing:
{"status":{"success":false,"code":716,"message":"Authentication code cannot be obtained successfully for the given mailbox.","fields":null,"errorCode":"LOGIN_API_GET_AUTHENTICATION_CODE_FAIL"},"sessionid":"SESSION_IDxxxxx","result":"","spent":110}
Authorize URL for 3-Legged OAuth:
https://platform.devtest.ringcentral.com/restapi/oauth/authorize?client_id=APP- KEY&response_type=code&redirect_uri=URL-ENCODE-RIDIRECT-URI&prompt=login+consent&state=RANDOM-STATE-NUMBER
On server side Node.js is not available only PHP (LAMP)
I tried using Browser JS SDK, and having exactly same issue that is:
Authentication code cannot be obtained successfully for the given mailbox.
. (May be something with this account?), Although I can get access token using username and password (2-legged OAuth) of same account but require 3-legged OAuth
<script type="text/javascript" src="build/promise.js"></script>
<script type="text/javascript" src="build/fetch.js"></script>
<script type="text/javascript" src="build/pubnub.js"></script>
<script type="text/javascript" src="build/ringcentral.js"></script><!-- or ringcentral.min.js -->
<script type="text/javascript">
var sdk = new RingCentral.SDK({
server: 'https://platform.devtest.ringcentral.com', // SANDBOX
//server: 'https://platform.ringcentral.com', // PRODUCTION
appKey: 'APP KEY'
});
var platform = sdk.platform();
var authorizeURI = platform.authUrl({
redirectUri: 'REDIRECT URI',
prompt: 'login consent',
state: 'RANDOM STATE'
});
// Open browser to authorizeURI (which should contain all the properly formatted queryString parameters in place)
window.open(authorizeURI, '_self', '');
</script>
from ringcentral-php.
The error encountered can result due to TLS 1.2 enforcement on our server. Check your client to verify it supports TLS 1.2.
I've reformatted it below for easier reading.
{
"status":{
"success":false,
"code":716,
"message":"Authentication code cannot be obtained successfully for the given mailbox.",
"fields":null,
"errorCode":"LOGIN_API_GET_AUTHENTICATION_CODE_FAIL"
},
"sessionid":"SESSION_IDxxxxx",
"result":"",
"spent":110
}
I'm closing this due to the age of this issue. Feel free to post if this is still an issue.
from ringcentral-php.
Related Issues (20)
- PHPOption deprecation warning
- 400 Bad Request (and additional error happened during JSON parse: Response is not JSON)
- FatalError: Unparenthesized `a ? b : c ? d : e` is not supported HOT 2
- php 7.4 Ternary Operator Issue HOT 1
- Undefined array key "code_challenge" HOT 1
- Issue with PHP version 7.4
- telephony webhook end
- Do not specify default "Accept" header HOT 1
- Upgrade PubNub dependency HOT 4
- Root package 'ringcentral/ringcentral-php' cannot require itself in its composer.json
- Required changes for Global Authentication Changes? :question:
- Symfony 7 dependency HOT 1
- Error message truncated in SDK HOT 5
- Unable to pass body in delete request HOT 1
- Symfony/event-dispatcher 5.1.0 not compatible HOT 1
- Whitesource CVE-2020-28032
- Face issue while sending the mms with image.
- trying to filter extension list results in an error with urlencode()
- Client error: `POST https://platform.devtest.ringcentral.com/restapi/oauth/token` resulted in a 400 Bad Request HOT 1
- Composer error: incompatible with guzzlehttp/psr7 2.x+ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ringcentral-php.