Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am using Openid for authentication in Flask framework. Following is my code for login View.

@app.route('/login', methods = ['GET', 'POST'])
@oid.loginhandler
def login():
    if g.user is not None and g.user.is_authenticated():
        return redirect(url_for('index'))
    form = LoginForm()
    if form.validate_on_submit():
        session['remember_me'] = form.remember_me.data
        return oid.try_login(form.openid.data, ask_for = ['nickname', 'email'])
    print "Errors of Openid:"+oid.fetch_error()
    return render_template('login.html', 
        title = 'Sign In',
        form = form,
        providers = app.config['OPENID_PROVIDERS'])

This piece of code redirect me to google.com. When i am redirected back to my site (After providing my credentials ). I receive following error:"OpenID authentication error"

share|improve this question
    
please add some info on the libraries you're using and a full traceback –  Paolo Casciello Jan 17 '14 at 16:34

1 Answer 1

up vote 0 down vote accepted

I fixed the time/timezone of the server and error was no longer there.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.