Skip to content
Snippets Groups Projects
Commit 3a9145ca authored by François Agneray's avatar François Agneray
Browse files

Web_admin page in progress

parent 783d873c
No related branches found
No related tags found
No related merge requests found
Pipeline #4960 passed
......@@ -24,4 +24,8 @@ The website is generated into a folder named `site`
## Authors
* `François Agneray` : Laboratoire d'Astrophysique de Marseille (CNRS)
\ No newline at end of file
* `François Agneray` : Laboratoire d'Astrophysique de Marseille (CNRS)
## Web interface
After the start the interface is available at: [http://localhost:8888](http://localhost:8888)
docs/img/anis_admin_config_file.png

9.29 KiB

docs/img/anis_admin_list_databases.png

27.3 KiB

docs/img/anis_admin_list_projects.png

36.7 KiB

docs/img/anis_admin_root.png

25.6 KiB

# Web Admin
## Introduction
Anis-admin provides a web interface to assist the administrator in the configuration.
In this section we will see how it works.
## Authentication
By default the authentication is disabled. If you have enabled anis-server authorization then
it is mandatory to activate authentication on the admin side.
To enable authentication you need to change the settings in the environments files. Go to the
directory `src/environments`. This directory contains two typescript files. `Environement.ts` is
for the dev version and `environement.prod.ts` for the production.
If you want to configure the dev version open the `environement.ts`.
![anis_admin_config_file](img/anis_admin_config_file.png#center)
We will list the different parameters here :
- `production`: Parameter reserved by angular framework
- `apiUrl`: URL to contact anis-server
- `baseHref`: Base URL to use for all relative URLs in a document
- `authenticationEnabled`: To enable authentication true else false
- `ssoAuthUrl`: URL to contact keycloak
- `ssoRealm`: Keycloak realm used for this authentication
- `ssoClientId`: Keycloak client used for this authentication
- `ssoLoginRedirectUri`: Redirect URL after authentication
- `ssoLogoutRedirectUri`: Redirect URL after logout
If you want to test the authentication in development mode and you have started anis-server
just change the parameter `authenticationEnabled` by true. Keycloak is already configured to work.
## Web interface
To open the web interface in dev mode go to: [http://localhost:4201](http://localhost:4201)
![anis_admin_root](img/anis_admin_root.png#center)
On the first page you can see the list of available instances. An instance corresponds to one anis-client website.
Here you can see the `Default instance` added when installing anis-server. `Default instance` refers to the
anis-client project run in dev mode on [http://localhost:4200](http://localhost:4200).
On the top menu you can see three links:
- `Instances`: To see the list of all instances (root page)
- `Projects`: To manage projects and databases
- `Settings`: To manage dynamic settings for this web interface
## Add a database and a project
First of all cick on `Projects` on the top menu.
![anis_admin_list_project](img/anis_admin_list_projects.png#center)
On the first tab you can see all available scientific projects.
A scientific project must be linked to a database. To add a new
database you must go to the second tab `Databases`.
![anis_admin_list_databases](img/anis_admin_list_databases.png#center)
Here you see the test database added during the installation of anis-server.
To add a new database, you must click on `new database`. You must then fill in
all the mandatory fields to reference a new database. Attention for the moment
only the postgresql driver has been tested.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment