securesocial

Why is the Unresolved Dependencies error with SecureSocial and Play 2.3.2?

一个人想着一个人 提交于 2020-01-05 11:38:43
问题 i'm writing a Play 2.3.2 application (using Java). In my project now i need to use secure social (master) module. But when i type the activator run command i get the following errors: [info] Resolving ws.securesocial#securesocial_2.11;1.0-SNAPSHOT ... [warn] module not found: ws.securesocial#securesocial_2.11;1.0-SNAPSHOT [warn] ==== local: tried [warn] /home/giacomo/.ivy2/local/ws.securesocial/securesocial_2.11/1.0-SNAPSHOT/ivys/ivy.xml [warn] ==== activator-local: tried [warn] file:/home

How to change text in SecureSocial

♀尐吖头ヾ 提交于 2019-12-24 17:02:03
问题 I'm wondering how to change text in SecureSocial views... I've created file messages.en in the conf directory... but it does not work. If I want my text and other stuff like copyright notice, shall I create my own custom views? Thanks. 来源: https://stackoverflow.com/questions/14696385/how-to-change-text-in-securesocial

Ambiguous values in Lang and requestLang

爱⌒轻易说出口 提交于 2019-12-24 02:18:48
问题 Using: PlayFramework 2.3 and SecureSocial (compatible version with 2.3) Im receiving this error in the ViewTemplate: [error] /Users/einevea/projects/einjar/einevault/econcepts/modules/eusers/app/services.eusers/MyViewTemplates.scala:29: ambiguous implicit values: [error] both method request2lang in trait Controller of type (implicit request: play.api.mvc.RequestHeader)play.api.i18n.Lang [error] and value lang of type play.api.i18n.Lang [error] match expected type play.api.i18n.Lang [error]

Integrate SecureSocial with backend user services/storages?

爱⌒轻易说出口 提交于 2019-12-24 00:37:13
问题 Using Play! 2.0.4 and SecureSocial 2 (http://securesocial.ws/). Scala implementation. Most of this question will be directly referencing the sample here: https://github.com/jaliss/securesocial/blob/2.0.12/samples/scala/demo/app/service/InMemoryUserService.scala I'm trying to figure out the author's original intention as to backend interaction with a storage service. With respect to the def find(id: UserId) and the def findByEmailAndProvider(email: String, providerId: String): methods, is

Showing loggedin User info in the header of my web app every time

半腔热情 提交于 2019-12-21 18:31:22
问题 I am working on play 2.1 with secure social integration. As of now, I was able to integrate securesocial with mongod db using SALAT. Now I am able to login/logout. But now what i want is if the user has logged in , then I need to show user info like avatar etc in the header of my web application and I am not sure how to get the user information in scala.html without passing as params from Controller. I can't do this everytime. Do we have something similar to spring security which grabs user

Showing loggedin User info in the header of my web app every time

廉价感情. 提交于 2019-12-21 18:31:14
问题 I am working on play 2.1 with secure social integration. As of now, I was able to integrate securesocial with mongod db using SALAT. Now I am able to login/logout. But now what i want is if the user has logged in , then I need to show user info like avatar etc in the header of my web application and I am not sure how to get the user information in scala.html without passing as params from Controller. I can't do this everytime. Do we have something similar to spring security which grabs user

Getting logged out of securesocial on compile and on clustered servers

放肆的年华 提交于 2019-12-19 08:09:16
问题 I have a quick question about the authentication mechanism itself. How does securesocial manages the login cookie? I have a little problem when I change code in my system and I have been logged in before the code change then I will be logged out and I need to login again. This is true for development. For production we use a cluster system which has 2 machines if i start a request on one machine and the next request is on the other machine then I will be logged out every single time. Does

Play SecureSocial Persistance with Java

不打扰是莪最后的温柔 提交于 2019-12-18 13:39:18
问题 I started using play 2.1 for java and SecureSocial. Currently I'm trying to add some persistance to the Users that register/sign up to the site but I'm having trouble trying to represent the model that uses SecureSocial to save/retrieve data in their examples to a persistence model. Also in the web page says that we can implement SocialUser Object, but I really don't know how I can use it because is a scala object. An example of how could I call or extend that Object would be nice. Thanks in

Testing a Play2 application with SecureSocial using dependency injection

廉价感情. 提交于 2019-12-18 04:24:08
问题 Thanks a lot for any guidance! The SecureSocial plugin works fine when I run it from the browser, but I would like to be able to test the rest of my Play app now. Quick Intro SecureSocial's syntax looks like this: def page = SecuredAction(WithProvider("google")) { ... } or this: def page = UserAwareAction { ... } I've been looking here, which seems to be the only question on Stack Overflow even remotely related to my problem with SecureSocial, but I don't quite fancy rewiring bytecode. There

Can I use SecureSocial for calls from say an mobile app

做~自己de王妃 提交于 2019-12-13 00:08:12
问题 I have a play 2 application that uses SecureSocial for authentication and it works perfectly. I now want to make calls to these rest services on the play application from outside the web app. Can I for example have an android application use the same secured rest methods? 回答1: FortyTwo team have a post in their engineering blog which clearly explains the steps in a detailed example: http://eng.42go.com/mobile-auth-with-play-and-securesocial/. 来源: https://stackoverflow.com/questions/22097788