...
- Checkout https://github.com/project-sunbird/sunbird-auth code and make build.
- create providers folder inside keycloak
- Copy the jar to providers folder
- Run the keycloak
- Login to admin console and click User Federation tab on left panel of the screen. As shown in fig.
- Select cassandra-storage-provider from Add provider drop down on the screen , then you will be redirected to screen as shown
- Click save button , It will generate one provider id as shown
- Copy this provider id and save this as env variable sunbird_keycloak_user_federation_provider_id , along with sunbird_authorization
sunbird_cassandra_host
sunbird_encryption_key
sunbird_sso_username
sunbird_sso_password
sunbird_sso_url
sunbird_sso_realm
sunbird_sso_client_id
sunbird_cs_base_url. - Run the below sql on keycloak database (provide {PROVIDER_ID} and realm name {realm name} in sql) , Before running sql just check the data of FEDERATED_USER,FED_USER_CREDENTIAL & FED_USER_REQUIRED_ACTION for further validation
...