Welcome to cocoon-shiro-sample
Apache Shiro is a powerful and easy-to-use Java security framework that performs authentication,
authorization, cryptography, and session management. With Shiro’s easy-to-understand API, you can quickly and easily secure any application
– from the smallest mobile applications to the largest web and enterprise applications.
This is the sample integration into a c3 app.
-
login page
-
secure page 1
-
secure page 2
- if you not logged in, you will redirected to the login page,
after that to the url you requested see the source code of that page is different from
the above it contains a <input type="hidden" name="to" value="secure/2">. If you this in your
code the rest service will redirect to that value.
-
admin page
- same as secure but you need to have choosen the user c3 to see it.
-
logout