Pass verified subject to source authorization scopes
1 file changed,
+2
−2
connect/dashboard/provider.go+2 −2
CI cancelled — superseded by a newer push — run details
diff --git a/connect/dashboard/provider.go b/connect/dashboard/provider.go| index a776f6f..2460e9d 100644 |
| --- a/connect/dashboard/provider.go |
| +++ b/connect/dashboard/provider.go |
| @@ -16,7 +16,7 @@ type ProviderConfig struct { |
| Keys map[string][]byte |
| // Resolve reads an existing explicit link AND current admission. Never creates accounts. |
| Resolve func(context.Context, string) (int64, error) |
| - Read func(context.Context, int64, time.Time) (Response, error) |
| + Read func(context.Context, int64, string, time.Time) (Response, error) |
| } |
| func NewProvider(c ProviderConfig) (http.Handler, error) { |
| @@ -59,7 +59,7 @@ func NewProvider(c ProviderConfig) (http.Handler, error) { |
| } |
| return |
| } |
| - result, e := c.Read(r.Context(), id, now) |
| + result, e := c.Read(r.Context(), id, claims.Subject, now) |
| if e != nil { |
| refuse(503) |
| return |