cduicu / play-jaas-demo

A simple demo for play-jaas module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

play-jaas-demo

A simple Play application that uses play-jaas for authentication. This demo is self suficient in the sense that it uses play-jaas as a precompiled static dependency in the lib/ directory. Defaults are used (ie. StubAuthModule). However, you need to create a jaas.config file with this content:

StubAuth { auth.impl.StubAuthModule required debug=true; };

The project uses Global.java to configure JAAS but instead, you could simply configure the jaas file via -D property. Successful auth URL: http://localhost:9000/test?username=test&password=pwtest Test unsuccessful auth URL: http://localhost:9000/test?username=test&password=test

About

A simple demo for play-jaas module


Languages

Language:Java 89.1%Language:Scala 10.9%Language:CSS 0.0%