manuakasam / samuser Goto Github PK
View Code? Open in Web Editor NEWA simple Module that glues together ZfcUser, BjyAuthorize and Doctrine 2.
A simple Module that glues together ZfcUser, BjyAuthorize and Doctrine 2.
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
Could you please provide a better documentation?
1.) Do i have to load ZfcBase
and ZfcUser
or should only SamUser
be loaded?
2.) How to enable the default-routes provided by ZfcUser?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.