# api.eclipse.org and accounts.eclipse.org

## Getting Started

Make sure you have docker and docker-compose installed before getting started.

To build or rebuild this project from scratch (Use with caution if you are already working on something as you may lose data):

```bash
make clean-install # This will delete your mariadb volume and source code.
```

To resume a dev instance:

```bash
make start-dev
```

## Keycloak Configurations

To ensure seamless login integration with the local Keycloak instance by verifying that the information for the 'drupal_accounts' client defined in [Keycloak](https://keycloak/admin/master/console/#/community_realm_ldap/clients/) aligns with the settings configured in your local [OpenID Connect](https://accounts.eclipse.dev.docker/admin/config/services/openid-connect) configs.

* Client ID: drupal_accounts
* Client secret: (Fetch from your local instance of keycloak)
* Authorization endpoint: http://keycloak:8080/realms/community_realm_ldap/protocol/openid-connect/auth
* Token endpoint: http://keycloak:8080/realms/community_realm_ldap/protocol/openid-connect/token
* UserInfo endpoint: http://keycloak:8080/realms/community_realm_ldap/protocol/openid-connect/userinfo

We use non https url in our local instances to avoid issues with our certs not being able to be verfied (self-signed).

To download realm export use the following command:

```bash
make get-realm-export
```
