play-authenticate icon indicating copy to clipboard operation
play-authenticate copied to clipboard

How to integrate play-authenticate with Spring framework

Open sumeshpunakkal opened this issue 9 years ago • 2 comments

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...

sumeshpunakkal avatar Jul 25 '14 01:07 sumeshpunakkal

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

vanbeast avatar Nov 30 '14 12:11 vanbeast

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...

joscha avatar Nov 30 '14 12:11 joscha