Merge pull request #57 from mstg/deploy-test-5

Obsidian: Explain callbackForwarder
This commit is contained in:
resf-prow[bot] 2022-11-01 03:55:18 +00:00 committed by GitHub
commit d21a8a3f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,9 @@ type NameClaim struct {
Name string `json:"name"`
}
// callbackForwarder helps create an external callback since usual
// OAuth2 providers doesn't allow callback to localhost.
// Cloudflare Workers is a good option for this.
func callbackForwarder(callbackURL string) string {
env := os.Getenv("RESF_ENV")
// this section contained a callback forwarder, but cannot be published