-
Notifications
You must be signed in to change notification settings - Fork 2
remote authentication
to use remote authentication for setup with session (see setup options) start the server with SSO=true environment variable set
SSO=true gwt run
or
SSO=true rails server
or
SSO=true jetty-run
which expect the authentication server running on localhost:3000 and an authentication restful service:
- localhost:3000/authentications POST: will authenticate the credentials and returns a user with its groups or an unauthenticated empty response
- localhost:3000/authentications/reset_password POST: will reset the password for the given login without any response data
the used datastructures are:
- authentication
- login
- password # not used for reset_password
the result
- user
- login
- name
- groups # list of groups
- group
- name
just clone that user-management, prepare it and start it. and you need the ruby-maven gem installed.
git clone https://mkristian@github.com/dhammaDotOrg/users.git
cd users
rmvn bundle install
rake db:migrate db:seed
rails server
NOTE: the last two commands assumes ./target/bin in your PATH environment variable. otherwise prefix it with rmvn
to get it to work.
just start your application, go to an url where the login page pops up and then reset the password for the root user. in the console of the users server you will the email with the password. with this password you can login both in your application as well in the users application.
just login with our root in localhost:3000/Users.html@users/new