Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customizing SecureSocial module with play framework

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.

like image 635
user35559 Avatar asked Jun 18 '26 23:06

user35559


1 Answers

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.

like image 69
Somatik Avatar answered Jun 21 '26 14:06

Somatik