From bb577738ac0359f8c8da0902b5c18af789ddf29d Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 14 Apr 2025 14:34:00 -0600 Subject: fix: add audience parameter --- app/controllers/sessions/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/sessions/controller.go b/app/controllers/sessions/controller.go index 605e9a5..c75e204 100644 --- a/app/controllers/sessions/controller.go +++ b/app/controllers/sessions/controller.go @@ -25,6 +25,6 @@ func (c *Controller) MountTo(mux *http.ServeMux) { func (c *Controller) New(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusFound) - url := c.cfg.AuthCodeURL("csrf-token", oauth2.SetAuthURLParam("audience", "sparklelab.example.com")) + url := c.cfg.AuthCodeURL("csrf-token", oauth2.SetAuthURLParam("audience", c.audience)) http.Redirect(w, r, url, http.StatusFound) } -- cgit v1.2.3