Skip to content

Commit

Permalink
gs: Return authenticated context
Browse files Browse the repository at this point in the history
  • Loading branch information
johanstokking committed Jul 15, 2024
1 parent 50a2993 commit c6380f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/gatewayserver/is.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"go.thethings.network/lorawan-stack/v3/pkg/auth/rights"
"go.thethings.network/lorawan-stack/v3/pkg/cluster"
"go.thethings.network/lorawan-stack/v3/pkg/errors"
"go.thethings.network/lorawan-stack/v3/pkg/gatewaytokens"
"go.thethings.network/lorawan-stack/v3/pkg/rpcmetadata"
"go.thethings.network/lorawan-stack/v3/pkg/ttnpb"
"google.golang.org/grpc"
Expand Down Expand Up @@ -194,5 +195,5 @@ func (is IS) newGatewayBatchAccessClient(ctx context.Context) (ttnpb.GatewayBatc
}

func getAuthenticatedContext(ctx context.Context) (context.Context, error) {
return ctx, nil
return gatewaytokens.AuthenticatedContext(ctx)
}

0 comments on commit c6380f4

Please sign in to comment.