2022-05-09
Gravitee sur VM Oodrive
- Mise à jour de GIT dans le repertoire gravitee de la VM
- Nouveau commit "add prefix registry.oodev.io to d-compose"
- Configuration SMTP ne semble pas correcte => aucun e-mail envoyé vérifiable ici
- lors d'une inscription
- lors d'un reset
- lors d'un envoi de notification
Configuration actuelle
- gravitee_email_enabled=true
- gravitee_email_host=smtp.oodev.io
- gravitee_email_port=25
- gravitee_email_from=info@oodev.io
- gravitee_email_username=info@oodev.io
- gravitee_email_password=oodev.io
- gravitee_email_properties_auth=true
- gravitee_email_properties_starttls.enable=true
- gravitee_email_properties_ssl.trust=smtp.oodev.io
Logs actuels
gio_apim_management_api | 10:12:38.355 [graviteeio-node] INFO i.g.c.event.impl.EventManagerImpl - Register new listener GraviteeJavaMailManager for event type class io.gravitee.rest.api.model.parameters.Key
gio_apim_management_api | 10:28:39.806 [gravitee-listener-136] WARN i.g.r.a.service.impl.UserServiceImpl - An email will be sent with a default 'resetPassword' link. You may want to change this default configuration of the 'Management URL' in the Settings.
gio_apim_management_api | 10:29:18.963 [gravitee-listener-135] WARN i.g.r.a.service.impl.UserServiceImpl - An email will be sent with a default 'resetPassword' link. You may want to change this default configuration of the 'Management URL' in the Settings.
GitLab OODEV Token
Personal access tokens
Personal access tokens can be an alternative to OAuth2 and used to:
- Authenticate with the GitLab API.
- Authenticate with Git using HTTP Basic Authentication.
In both cases, you authenticate with a personal access token in place of your password.
Alternately, GitLab administrators can use the API to create impersonation tokens. Use impersonation tokens to automate authentication as a specific user.
- goal: Create impersonation tokens
APIM Token
APIM: mEh6pfBPL7iMzbWRW3X6
Password-authentication replaced with token-based authentication
-
Generate a new token from GIT dev settings.
-
Remove and readd origin locally
git remote remove origin
- git remote add origin
git remote add origin https://<token>@<git_url>.git
git remote add origin https://oauth2:mEh6pfBPL7iMzbWRW3X6@oogit.oodrive.net/oodrive-connect/apim.git
- pull once
git pull https://<token>@<git_url>.git
git pull https://oauth2:mEh6pfBPL7iMzbWRW3X6@oogit.oodrive.net/oodrive-connect/apim.git
- Creation d'un README pour le projet APIM
- Creating d'une issue sur le projet APIM