Giter Site home page Giter Site logo

Comments (8)

agungsugiarto avatar agungsugiarto commented on May 30, 2024 2

Thanks for the info, I will integrate that!

One mistake I noted inline on your PR but otherwise it looks great.

thank u, already fix a248d26

from codeigniter4-authentication.

agungsugiarto avatar agungsugiarto commented on May 30, 2024

Hello @MGatner, thank u for suggestion.

Can i suggest also, to update documentation with link pointing to packagist. example https://packagist.org/providers/codeigniter4/authentication-implementation

from codeigniter4-authentication.

agungsugiarto avatar agungsugiarto commented on May 30, 2024

Here we go
Screenshot (18)

from codeigniter4-authentication.

MGatner avatar MGatner commented on May 30, 2024

Well you added the provision without implementing the requirements, which is quite misleading. Please review the User Guide link, but basically you are missing:

  • The function user_id() to return the unique identifier for a current user
  • CodeIgniter Events for "login" and "logout"

Thank you for the Packagist link suggestion, that's a great idea! I just sent it over (and mentioned you).

One more thing while I'm here... I made some interfaces that my modules will use for identifying user data. The auto-discovery (https://github.com/tattersoftware/codeigniter4-users/blob/develop/src/UserProvider.php) checks for a few known modules and I would like to add yours. I can wrap them in an adapter and provide the methods, unless you would prefer to provide those natively? See UserEntity and UserFactory interfaces.

from codeigniter4-authentication.

agungsugiarto avatar agungsugiarto commented on May 30, 2024

#16 i hope you're happy @MGatner in this pr is fully provide codeigniter4/authentication-implementation 😄

About you're package codeigniter4-users you can wrap this the entitty reference is from interface https://github.com/agungsugiarto/codeigniter4-authentication/blob/master/src/Contracts/AuthenticatorInterface.php and implementation from https://github.com/agungsugiarto/codeigniter4-authentication/blob/master/src/Traits/AuthenticatableTrait.php

and the user factory from https://github.com/agungsugiarto/codeigniter4-authentication/blob/master/src/Contracts/UserProviderInterface.php implementation https://github.com/agungsugiarto/codeigniter4-authentication/blob/master/src/Traits/UserProviderTrait.php

from codeigniter4-authentication.

MGatner avatar MGatner commented on May 30, 2024

Thanks for the info, I will integrate that!

One mistake I noted inline on your PR but otherwise it looks great.

from codeigniter4-authentication.

MGatner avatar MGatner commented on May 30, 2024

I've included your library, using the "Fluent" handle: tattersoftware/codeigniter4-users@a7eba65

This latest release includes two new extensions to the user interface, HasGroup and HasPermission, for modules that need those additional methods. If you end up implementing these in your library please let me know and I will add the additional interfaces to my wrapper. https://github.com/tattersoftware/codeigniter4-users/tree/develop/src/Interfaces

from codeigniter4-authentication.

agungsugiarto avatar agungsugiarto commented on May 30, 2024

Thank u @MGatner, but i don't any have plan to make authorization. Let community make authorization for this package.

from codeigniter4-authentication.

Related Issues (8)

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.