<commit_before>xifi
====

Delivery Mechanism: XIFI Federation

Installation Guide
------------------
Compile
---
```sh 
cd FederationManager
mvn clean install
```

Run WildFly container
---
 ```sh
 cd ../../server/wildfly
 ./bin/standalone.sh
 ```

MySql Setup
---
* log into WildFly AS at localhost:9990 with username "admin" and password "<PASSWORD>"
* under the Profile tab add a new datasource and follow the steps listed in the pictures below
![alt text](doc/addDatasource1.png "Add datasource")
![alt text](doc/addDatasource2.png "Add datasource jndi")
* edit the username and password regarding your MySql server installation
![alt text](doc/addDatasource3.png "Add datasource connection")
* the registered datasource might have to be enabled
	
Preferences
---
The Federation Manager application defines a set of preferences for configuration. 
* tokenLocation - url to fetch oauth access token, example https://account.lab.fi-ware.org/oauth2/token
* redirectURI   - callback url registered at IDM
* userLocation  - url to fetch user based on access token
* clientId     -  client id assigned by IDM
* environment -  defines the role of the user to use, either "dev_member", "dev_admin", "dev_fm" for development environment or "production" if to be used with IDM authentication/authorization
* errorPage - defines the URL for an error page
* clientSecret - client secret assigend by IDM
* authLocation - url of oauth entry point<commit_msg>update of documentation<commit_after>xifi
====

Delivery Mechanism: XIFI Federation

Installation Guide
------------------
Compile
---
```sh 
cd FederationManager
mvn clean install
```

Run WildFly container
---
 ```sh
 cd ../../server/wildfly
 ./bin/standalone.sh
 ```

MySql Setup
---
* log into WildFly AS at localhost:9990 with username "admin" and password "<PASSWORD>"
* under the Profile tab add a new datasource and follow the steps listed in the pictures below
![alt text](doc/addDatasource1.png "Add datasource")
![alt text](doc/addDatasource2.png "Add datasource jndi")
* edit the username and password regarding your MySql server installation
![alt text](doc/addDatasource3.png "Add datasource connection")
* the registered datasource might have to be enabled
	
Preferences
---
The Federation Manager application defines a set of preferences for configuration. 
* tokenLocation - url to fetch oauth access token, example https://account.lab.fi-ware.org/oauth2/token
* redirectURI   - callback url registered at IDM
* userLocation  - url to fetch user based on access token
* clientId     -  client id assigned by IDM
* environment -  defines the role of the user to use, either "dev_member", "dev_admin", "dev_fm" for development environment or "production" if to be used with IDM authentication/authorization
* errorPage - defines the URL for an error page
* clientSecret - client secret assigned by IDM
* authLocation - url of oauth entry point
{'fraction_non_alphanumeric': 0.09497591190640055, 'fraction_numerical': 0.0055058499655884375, 'mean_word_length': 4.09106830122592, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '36704', 'n_tokens_mistral': 801, 'n_tokens_neox': 776, 'n_words': 343}