Identity provider - Access Github repository


I’m experimenting with keycloak, and my goal is to create an app that directly manipulate on Github repos. It’s a test app, so basically I’m only trying on my own repos.
So far I have:

  • login of user using Github social button (access to repo is clearly asked through scopes),
  • a React front end with a public Client in keycloak,
  • a rest Spring Rest server with a bearer only Client in keycloak,
    Login works, calling Spring Rest server from frontend works.

Now since the user granted access to its repo when registering, is there any way to get the authorization token for Github API calls ?

I’m not sure where to look. I’ve been searching in Identity Brokering, but not sure it fit my goal.

Thank you,