문제

This is a beginner question with regard to using the SecureSocial(version 0.2.3 module with play framework (1.2.4)

  • Is it possible to have custom routes? When I use the module::secure in my routes file, I am being redirected to localhost:9000/auth/login. I would like to just use localhost:9000/login, localhost:9000/logout and so on

  • Is it possible to custom style the login page for the different social providers? I would like to have custom look and feel and also custom messages.

도움이 되었습니까?

해결책

you can mount the routes to / instead of /auth

 *     /                       module:securesocial

You can also define your own routes for the securesocial contollers, remove the module:securesocial line and copy the securesocial routes file contents into your own routes file with different mount points.

For the login page it can be customized by copying it from the securesocial module source (app/views) to app/views/securesocial/SecureSocial/ folder in your own project

Do not forget to check for changes when you switch to a new securesocial version.

다른 팁

There is routes file for this module too. You can try to edit this one and configure your app

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top