formapro / FpOpenIdBundle

Symfony2 OpenID security extension
53 stars 31 forks source link

The login could not be finsih due to token lost. #54

Closed makasim closed 12 years ago

makasim commented 12 years ago

The provider (FOSUSerManager for example) cannot refreshUser because it is a serialized proxy class. So when you call getId method it will try to load an entity and faild to do it.

makasim commented 12 years ago

the solution for now to create a relation between user and identities with fetch eager option. The doc is updated.

ama3ing commented 9 years ago

@makasim, I have enabled fetch="EAGER" but still token is lost, could you please give me some points?

ama3ing commented 9 years ago

Or maybe I just using something wrong, I interactively create user and I am getting this exception:

if (false == $token instanceof OpenIdToken) {
            throw new \LogicException('The failure does not contain OpenIdToken, Is the failure come from openid?');
}
ama3ing commented 9 years ago

Sorry, this was not the point.