This Spring Boot application serves as simple reference implementation of the [dariahsp-core](../dariashp-core) library. The sample is based on Java ServerPages (JSP) for view rendering and presents itself as an index page that provides important links to login, logout and protected areas.
> See the JavaDoc for further explanation on the components of the sample application
### Initialization
1.[`SampleApplication`](/src/main/java/eu/dariah/de/dariahsp/sample/SampleApplication.java) is the Spring Boot application class and handles initialization
### Configuration
2.[`SampleConfig`](/src/main/java/eu/dariah/de/dariahsp/sample/SampleApplication.java) serves as primary application configuration class; it defines the beans of
*`profileActionPostprocessor` for processing of login and logout activity,
*`samlMetadataController`, a controller bean that facilitates access to metadata of the SP and
*`webServerFactoryCustomizer` for changing the context path of the application
3.[`SampleSecurityConfig`](/src/main/java/eu/dariah/de/dariahsp/sample/SampleApplication.java) - by extending the basic `SecurityConfig` class - imports the beans and configuration of the core library; it further imports configuration of the `AuthInfoConfigurer` class; The `@ConfigurationProperties(prefix = "auth")` annotation provides all configuration properties to the implemented `dariahsp-core` configuration