Giter VIP home page Giter VIP logo

samuser's People

Contributors

manuakasam avatar samsonasik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

samuser's Issues

object_manager setting

Great work! I adopted the module to my uses, but i had to change a setting for it to work with bjyauthorize:

'bjyauthorize' => array(
    // Using the authentication identity provider, which basically reads the roles from the auth service's identity
    'identity_provider' => 'BjyAuthorize\Provider\Identity\AuthenticationIdentityProvider',

    'role_providers'        => array(
        // using an object repository (entity repository) to load all roles into our ACL
        'BjyAuthorize\Provider\Role\ObjectRepositoryProvider' => array(
            'object_manager'    => 'doctrine.entitymanager.orm_default',
            'role_entity_class' => 'SamUser\Entity\Role',
        ),
    ),

The object_manager line was set to 'doctrine.entity_manager.orm_default' with that extra underscore. I had to get rid of the underscore to get it to work (after many hours :) )

I'm using bjy version 1.2.5, doctrine/common 2.3.0, doctrine/dbal 2.3.3, doctrine/doctrine-module 0.8.x-dev

Better documentation

Could you please provide a better documentation?

1.) Do i have to load ZfcBaseand ZfcUser or should only SamUser be loaded?
2.) How to enable the default-routes provided by ZfcUser?

SamUser\Entity\User's setters don't return $this

I'm new to ZF2 and Doctrine but I have a Problem with scnSocialAuth, using the SamUser User Entity. When logging in via i.e. facebook I get the following error:

Call to a member function setDisplayName() on a non-object in /.../vendor/socalnick/scn-social-auth/src/ScnSocialAuth/Authentication/Adapter/HybridAuth.php on line 343

The setters are chained so the second set throws the error:

$localUser->setEmail($userProfile->emailVerified)
->setDisplayName($userProfile->displayName)
->setPassword(__FUNCTION__);

For now I created and use my own UserEntity that extends yours to prevent composer updates to override the changes.

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.