hpad uses github or orcid accounts for create / write access, but the underlying codimd service does not support a whitelist for users. This can be implemented using keycloak as an authentication proxy, and directing codimd to use keycloak instead of github.
The steps seem to be:
- Add GitHub as an identity provider, add the codimd github clientid and secret to keycloak (or register as a new oauth app). Probably using the "First Broker Login" flow
- Add a condition to check if a username is in a predefined list
- Configure hpad to use OIDC pointing to keycloak
hpad uses github or orcid accounts for create / write access, but the underlying codimd service does not support a whitelist for users. This can be implemented using keycloak as an authentication proxy, and directing codimd to use keycloak instead of github.
The steps seem to be: