Skip to content
Snippets Groups Projects
Commit bfa5d1ba authored by Nikolaos Papapetrou's avatar Nikolaos Papapetrou
Browse files

Update README.md

parent c7a4c0d7
Branches
Tags
No related merge requests found
......@@ -10,7 +10,7 @@ A starter application in spring boot & angular 2.
## Setting up the spring project
* First we need to set up the hidden file folder and hidden files (default hidden folder is in **/home/nikp/properties**). <br />
First we need to set up the hidden file folder and hidden files (default hidden folder is in **/home/nikp/properties**). <br />
The hidden files are these:
* A certificate file for accessing the CERN services
(default name in the hidden folder: **sample-app.jks**)
......@@ -24,18 +24,18 @@ A starter application in spring boot & angular 2.
* A property file per environment of your application , Dev, Prod, etc...
The naming convention is as follows: app-ENVIRONMENT.properties (ex. for dev -> app-dev.properties)<br >
A sample for this file is in the root folder of the project, named **app-ENVIRONMENT.properties**.
* Then we have to install java-8 and make sure that it has the needed policy files
Then we have to install java-8 and make sure that it has the needed policy files
* After installing java-8, make sure to replace the JCE policy files with the appropriate ones from:<br >
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html<br >
The policy files can be found at $JAVA_HOME/jre/lib/security. The files that you will change are **local_policy.jar** and **US_export_policy.jar**
* By now most likely the LDAP authentication should be working. If it's not, then something went wrong in the previous steps <br >
By now most likely the LDAP authentication should be working. If it's not, then something went wrong in the previous steps <br >
Now to set up also the SSO authentication, you will have to register the application at https://sso-management.web.cern.ch/SSO/RegisterApplication.aspx
* It's important that you choose as your **Service Provider type** --> **SAML2 with online metadata**
* And in the **Application Metadata Uri** you should put https://YOUR-APPLICATION-MAIN-URL/saml/metadata <br >
(To check that it's the correct URl, by redirecting to the above url you should be getting an xml file)
* Finally for the **Application Homapage** put this https://YOUR-APPLICATION-MAIN-URL and wait for the SSO team to register your application.
It's important that you leave your application running for them to approve it.
* Now you should be ready to start working :) .
Now you should be ready to start working :) .
## Commands for gradle/Spring
- `gradle clean`: clean the generated build dir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment