joscha / play-authenticate

An authentication plugin for Play Framework 2.x (Java)
http://joscha.github.com/play-authenticate/
Other
807 stars 366 forks source link

How to integrate play-authenticate with Spring framework #199

Open sumeshpunakkal opened 10 years ago

sumeshpunakkal commented 10 years ago

Hi, I'm planning to use play-authenticate for authentication. My DB is Mongo, with Spring Data Mongo used for persistence. As per the documentation I have extended UserServicePlugin and created a class. But I need to inject repository into that object, right now when I try to inject it's coming as null as the MyUserServicePlugin is instantiated by play-authenticate framework. Is there any way to make the application to inject MyUserServicePlugin using Spring? so that I can inject the rest of the repositories required...

vanbeast commented 9 years ago

I have similar problem. Is there way to use play-authenticate in the case Spring is used for DI?

joscha commented 9 years ago

Unfortunately my knowledge in Spring is not proficient enough at this point in time to give an answer to those questions, but I am leaving the issue open, maybe some other users from the community can give you an answer...