summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-14 14:33:20 -0600
committermo khan <mo@mokhan.ca>2025-04-14 14:33:20 -0600
commitd087303929d5f79c69ae0309f0b26932efba65e0 (patch)
tree08230895b18e9df663c9730be50feacb5ac804c9 /app/controllers
parentebc754b0efead25ca0e899164ae8196c2b76789b (diff)
fix: add audience parameter
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/sessions/controller.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/controllers/sessions/controller.go b/app/controllers/sessions/controller.go
index 9340ab6..605e9a5 100644
--- a/app/controllers/sessions/controller.go
+++ b/app/controllers/sessions/controller.go
@@ -7,11 +7,15 @@ import (
)
type Controller struct {
- cfg *oauth2.Config
+ audience string
+ cfg *oauth2.Config
}
-func New(cfg *oauth2.Config) *Controller {
- return &Controller{cfg: cfg}
+func New(cfg *oauth2.Config, audience string) *Controller {
+ return &Controller{
+ audience: audience,
+ cfg: cfg,
+ }
}
func (c *Controller) MountTo(mux *http.ServeMux) {