Giter Club home page Giter Club logo

Comments (6)

nsams avatar nsams commented on July 30, 2024

I wrote some basic documentation about the new Auth Methods in Kwf 3.8: http://www.koala-framework.org/documentation/kwf_general_features/users/auth_methods

For LDAP Login you'll have to implement a new auth method (implementing the Redirect interface).

All methods you don't need (changing password, activation etc) simply leave empty. If you can't change password we need to make that optional, probably in it's own interface or something. But that's for later...

If you could hack together something and push it somewhere I'll have a look...

from koala-framework.

Sogl avatar Sogl commented on July 30, 2024

Don't look easy :D

As I realized:

  1. I must add new user model to my config.ini:
user.model = LDAP
  1. Add new LDAP.php in \controllers with following:
class LDAP extends Kwf_User_Model
{
    public function getAuthMethods()
    {
        $ret = parent::getAuthMethods();
        $ret['custom'] = new MyAuth($this);
        return $ret;
    }
}

What is MyAuth? I don't understand where I can put my LDAP-auth code and how to use Kwf_User_Auth_Interface_Redirect...

With a small sample it would be easier =)

from koala-framework.

nsams avatar nsams commented on July 30, 2024

I would name the class "Users" not LDAP - as it represents users. And place it in models/ - it's a model after all.

MyAuth Is a new class that you have to implement yourself. Place it into app/ and name it LdapAuth for example. And in that new class you implement the interface (class LdapAuth implements Kwf_User_Auth_Interface_Redirect)

from koala-framework.

nsams avatar nsams commented on July 30, 2024

How is your login coming along?

from koala-framework.

Sogl avatar Sogl commented on July 30, 2024

How is your login coming along?

Not yet proceeded. I will write here in the process of implementation.

from koala-framework.

nsams avatar nsams commented on July 30, 2024

closing, re-open if needed

from koala-framework.

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.