Git Product home page Git Product logo

Comments (5)

jgomer2001 avatar jgomer2001 commented on June 15, 2024

The problem is even more general: if I simply add return False in this line of the script, the blank page is shown.

In most circumstances authenticate function just returns the value of attemptAuthentication, which in this case is False.

I don't see why it is not simply showing the login page with error message. Also, the script in 3.1.5 hasn't changed in a significant way. Actually, the same could be happening in SAML scenario.

from gluu-passport.

yurem avatar yurem commented on June 15, 2024

@syntrydy @jgomer2001 Are you getting it in latest CE build?

@jgomer2001 I've tried to modify basic script as you offer:

    def authenticate(self, configurationAttributes, requestParameters, step):
        return False

But this not led to redirect to postlogin page.

from gluu-passport.

yurem avatar yurem commented on June 15, 2024

On authentication failure (when script return False) this method return Constants.RESULT_AUTHENTICATION_FAILED which not led to user redirect to other page

from gluu-passport.

jgomer2001 avatar jgomer2001 commented on June 15, 2024

I'm using 3.1.5_1-4

def authenticate(self, configurationAttributes, requestParameters, step):
        return False

behaves as expected, but

def attemptAuthentication(self, ...):
        return False

ends up in the blank page.

from gluu-passport.

jgomer2001 avatar jgomer2001 commented on June 15, 2024

Latest update to Authenticator class fixed this, GluuFederation/oxAuth#972

from gluu-passport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.