diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-14 14:34:00 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-14 14:34:00 -0600 |
| commit | bb577738ac0359f8c8da0902b5c18af789ddf29d (patch) | |
| tree | 3c58e3c49ae1a431c5da0c8088eaf4aab2535b87 /app/controllers | |
| parent | d087303929d5f79c69ae0309f0b26932efba65e0 (diff) | |
fix: add audience parameter
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/sessions/controller.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |
