From 7f08fab0608890d5bde210957498fa1c163155e5 Mon Sep 17 00:00:00 2001 From: Nikolay Bystritskiy Date: Thu, 10 Feb 2022 20:30:47 +0100 Subject: [PATCH] set domain of go-oauth2/oauth2 same as service URL --- _example/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_example/main.go b/_example/main.go index bbe264ad..e7068298 100644 --- a/_example/main.go +++ b/_example/main.go @@ -294,7 +294,7 @@ func initGoauth2Srv() *goauth2.Server { err := clientStore.Set("cid", &models.Client{ ID: "cid", Secret: "csecret", - Domain: "http://127.0.0.1:8080", + Domain: "http://localhost:8080", }) if err != nil { log.Printf("failed to set up a client store for go-oauth2/oauth2 server, %s", err)