Gitea meets Keycloak - Gitea beginner questions

Hey everyone,

so we are just started with Gitea and want to tie it up with our Keycloak which has a LDAP as user federation. (Actually using a dev instance with just a keycloak admin user, when that works we will use the actual prod keycloak with ldap users)

In this regard there are two questions:

  • it seems like we have successful added keycloak as OAuth2 provider, but what would the redirect url need to look like? I can only find documentation for when Gitea get used as Identity provider and i dont like to use a wildcard
  • Actually the keycloak we connected is a dev instance and dont has users as just the keycloak admin itself (testing purposes). When we try to login as that user, we can’t login cause the self-registering is deactivated (as wanted) and it does not got synchronized after connecting keycloak as OAuth2 provider.

Thank you in advance.

Best regards
trezzi

That is solved, oauth2_client needed ENABLE_AUTO_REGISTRATION

That’s still open