Can't login using code using python SDK. the 3 legged auth works fine and returns a code, but when I type platform.login("", "", CODE, REDIRECTLINK) it returns source not found.
Client ID = jfEaGJSpQgaMYwr8Q-O1Zg
Sandbox numebr = +12678284935
Can't login using code using python SDK. the 3 legged auth works fine and returns a code, but when I type platform.login("", "", CODE, REDIRECTLINK) it returns source not found.
Client ID = jfEaGJSpQgaMYwr8Q-O1Zg
Sandbox numebr = +12678284935
Check the login function
def login(self, username='', extension='', password='', code='', redirect_uri='', jwt='', verifier=''):
Or look at the Dev guide getting started code
@app.route('/oauth2callback', methods=['GET'])
def oauth2callback():
platform = rcsdk.platform()
auth_code = request.values.get('code')
try:
platform.login('', '', '', auth_code, REDIRECT_URL)
except:
sys.exit("Unable to authenticate to platform. Check credentials.")
tokens = platform.auth().data()
session['sessionAccessToken'] = tokens
return render_template('test.html')
The 'code' is the 4th param and the 'redirect_uri' is the 5th param!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.