2016-11-29 15:30:53 +00:00
[[_example_overview]]
2017-10-09 06:38:46 +00:00
= Examples
2016-05-31 20:36:14 +00:00
2017-08-28 12:50:14 +00:00
The {project_name} Authorization can also help you to quickly get started with the authorization services and understand how to apply the same concepts to your
2016-06-29 22:51:16 +00:00
own applications.
2016-05-31 20:36:14 +00:00
2017-08-28 12:50:14 +00:00
If you are using the {project_name} Demo Distribution and you have it properly extracted in your file system:
2016-06-29 22:51:16 +00:00
2017-08-28 12:50:14 +00:00
* **keycloak-demo-{project_version}.[zip|tar.gz]**
2016-06-29 22:51:16 +00:00
2016-11-15 21:34:20 +00:00
you can check out the available examples from the following directory:
2016-06-29 22:51:16 +00:00
```bash
cd ${KEYCLOAK_DEMO_SERVER_DIR}/examples/authz
```
2017-08-28 12:50:14 +00:00
Or you can get them from https://github.com/keycloak/keycloak/tree/{project_version}/examples/authz[GitHub].
2016-06-29 22:51:16 +00:00
2016-09-09 03:53:39 +00:00
Each example has a `README` file with instructions about how to build, deploy, and test the example.
2016-06-29 22:51:16 +00:00
2016-11-15 21:34:20 +00:00
Here is a brief description of each example:
2016-06-29 22:51:16 +00:00
.Authorization Examples
|===
|Name |Description
2017-08-28 12:50:14 +00:00
| https://github.com/keycloak/keycloak/tree/{project_version}/examples/authz/hello-world-authz-service[hello-world-authz-service]
2016-11-15 21:34:20 +00:00
| A single-page application that is protected by a policy enforcer that decides whether a user can access that page based on the permissions obtained from a Keycloak Server.
2016-06-29 22:51:16 +00:00
2017-08-28 12:50:14 +00:00
| https://github.com/keycloak/keycloak/tree/{project_version}/examples/authz/photoz[photoz]
2016-06-29 22:51:16 +00:00
| A simple application based on HTML5+AngularJS+JAX-RS that demonstrates how to enable fine-grained permissions to RESTFul based services and HTML5 clients.
2017-08-28 12:50:14 +00:00
| https://github.com/keycloak/keycloak/tree/{project_version}/examples/authz/servlet-authz[servlet-authz]
2016-09-09 03:53:39 +00:00
| A simple Servlet-based application that demonstrates how to enable fine-grained authorization to a JBoss/Wildfly Servlet Application.
2017-01-04 22:22:56 +00:00
|===