After reading the README of this repo, it is not clear to me what it takes to use this library together with an external authorisation server; in my case it must be GitHub.
What it looks to me is that the example provided uses the Go/Gin back-end on which this library runs as both OAuth authorisation server and resource server.
Question is: where should I put the specific GitHub URL's so that my resource server asks GitHub to:
- authenticate the user
- produce the token from the temporary code
In some other implementations (e.g. http://www.passportjs.org/) there is some "strategy" that must be provided so that the authorisation server is at GitHub, Google or similar.
Thank you for your attention.