Create openid client : Click on the Clients and choose create to create a new client. Enter client id and select client protocol openid-connect and select Save.
Change Access type: After client is created change its access type to confidential.
Enter Valid Redirect URIs :
Copy callback URL from plugin and insert here. Ex -- https://<domain-name>/oauth/callback
Then click on + and enter home page URL.
Click on SAVE.
Keycloak Group Mapper: Now to get group details we need to perform its client mapping with group membership else group details will not be fetched. So in client select Mappers and then click on create. Select mapper type Group Membership and enter name and token claim-name i.e the attribute name corresponding which groups will be fetched. Turn Off full group path else group mapping will fail. Click on save.
Realm name: You need a realm name when you set up Keycloak as an OAuth provider, kindly copy it.
Get Client Secret: To get Client Secret Navigate to Clients, select Client Id and navigate to the Credentials tab.