Questions tagged [play-authenticate]

Play! Authenticate an extensible authentication plugin for Play! Framework 2 (Java)

38 questions
1
vote
1 answer

Play! Authenticate verification email

I have been working through the play authentication usage getting started guide: https://github.com/joscha/play-authenticate/blob/master/samples/java/Getting%20Started.md I have got to the stage where users can login with a gmail or openID account…
user1197252
1
vote
0 answers

REST API using play-authenticate on Play 2.0 Java

I am planning to replace existing custom authentication with play-authenticate. The REST API returns a token back to the client after successful login and all the subsequent requests add that token as a query parameter. Looking at the…
Petteri H
  • 11,779
  • 12
  • 64
  • 94
0
votes
1 answer

Scala Play 2.5 How to make Java's Context/Session/Request accessible to a view?

I'm working on this Scala play-authenticate-usage-scala project where I build on top of a Java framework play-authenticate (I know, life is not perfect ...). While running the application I see the exception included below. Carefully inspecting the…
SkyWalker
  • 13,729
  • 18
  • 91
  • 187
0
votes
1 answer

Play 2.5 How to convert from Scala Form to Java Form?

This is a bit of an odd situation because with the Play framework one stick to either Java or Scala. In my case, I want Scala but also want to build of top of the play-authenticate project that is implemented as a Play Java plugin (and not…
SkyWalker
  • 13,729
  • 18
  • 91
  • 187
0
votes
1 answer

Play 2.5 type mismatch Session type

Using deadbolt2 I have the following controller function implementation: def restricted: Action = deadbolt.Restrict(List(Array(USER_ROLE)))() { request => Future { val localUser = userProvider.getUser(request.session) // <<< expects a…
SkyWalker
  • 13,729
  • 18
  • 91
  • 187
0
votes
1 answer

Play-authenticate authorization via Facebook

I'm trying to use play-authenticate (0.8.1 snapshot) in play 2.5 app. According (to given example,) I've added Facebook provider to MyModule. bind(FacebookAuthProvider.class).asEagerSingleton(); And then got NPE: at…
0
votes
1 answer

Play authenticate create roles and signup page for different roles

Please am using Play authenticate play framework and am trying to create many roles and how to create different signup and login form for each role i created.
B. Hadji
  • 1
  • 1
  • 2
0
votes
1 answer

Assign Roles to Users during Registration - Play-authenticate with deadbolt

I have created 2 custom roles for my project. I want to assign a Role to the users during the registration process. How can I assign a role by default to the user during the registration. Also, how can I create 2 registration forms, if I have 2…
B. Hadji
  • 1
  • 1
  • 2
0
votes
1 answer

play-authenticate: Email/Password persist?

Where is Play-authenticate persisting the password in the email/password flow? The default models.User class persists the email, name and other fields in the database but does not have a column for password. I have largely followed the sample code.…
0
votes
1 answer

Action Composition for Authentication

I am having below class to check the incoming request. public class SecuredAction extends Action.Simple { @Override public Promise call(Context ctx) throws Throwable { // Not doing anything now. Just interrupting…
Shiva Kodityala
  • 105
  • 1
  • 10
0
votes
1 answer

Get picture field from Logged User in Play-Authenticate

I'm using Play-Authenticate to enable users to login using Google account. Login is working fine. Now, I want to show the profile picture of logged in user. I see that there is a 'picture' field in the…
earthouser
  • 63
  • 8
0
votes
1 answer

play-authenticate - getting user information on scala views or controller for logged in user

I'm using Google via play-authenticate for authentication in my java application. This is my first play-framework application. I need data of logged-in user on scala HTML page or controller. @currentAuth does not have user-name, which is there in…
Ashish Awasthi
  • 1,302
  • 11
  • 23
0
votes
1 answer

Redirecting to different action upon failed restriction in deadbolt2

With deadbolt2 and play-authenticate I can define restrictions on the controller and action level based on a user's roles and permissions. If the current user does not satisfy these restrictions, AbstractDeadboltHandler.onAuthFailure in the…
knittl
  • 246,190
  • 53
  • 318
  • 364
0
votes
2 answers

Is it possible to use play-authenticate without javaEbean?

I've followed through this sample code and tried to implement it with only simple JPA. However, when I tried to sign up with a Google account or login with an existing user account, it gave me this error. [RuntimeException: No EntityManager bound…
Eddie Chen
  • 343
  • 2
  • 8
0
votes
0 answers

play-authenticate gives redirection error (Twitter Login)

I am using play-authenticate to implement login with twitter on my web application. I have created an app on twitter. when the user clicks on the twitter link on my app, the user is redirected to the twitter where he provides his twitter…
Wearybands
  • 2,438
  • 8
  • 34
  • 53