Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mfadmin with LDAP authent - update authentication form logo #246

Open
matthieumarrast opened this issue Feb 20, 2023 · 2 comments
Open

mfadmin with LDAP authent - update authentication form logo #246

matthieumarrast opened this issue Feb 20, 2023 · 2 comments

Comments

@matthieumarrast
Copy link
Contributor

The default authentication form when using LDAP is showing à "Météo-France" logo.
It should be updated with a MetWork logo.
image

Or why not a way to provide its own company logo !?

@matthieumarrast
Copy link
Contributor Author

@matthieumarrast
Copy link
Contributor Author

the code of the login page is provided by a fastapi, located here:

  • /opt/metwork-mfadmin-2.1/opt/ldap/repaire/api/infra

the static png files (favicon and logo) are here:

  • /opt/metwork-mfadmin-2.1/opt/ldap/repaire/api/infra/static/png

the idea is to allow the user to set its own png files (from its compagny), so why not proposing to the user to put its own files on the server and to allow him to update the file path or overwrite the existing

################
##### LDAP #####
################
[ldap]
# login logo/favicon png files
# you can provide your own logo instead of using the default ones
login_logo_path = ~/var/ldap/static/png/mw_logo.png
login_favicon_path = ~/var/ldap/static/png/mw_favicon.png

so the code of the html page must refer to these config (i.e env variable), the page is located here :

  • /opt/metwork-mfadmin-2.1/opt/ldap/repaire/api/infra/templates/login.html

can we use env variable inside it ? ...
should we copy the entire page and static files in the mfadmin HOME var ?
how the fastapi will serve static files located elsewhere?
should we move the ldap/fastapi to the mfadmin HOME ?
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant