mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Authz: Fix on-prem grpc authentication (#91341)
* Authz: Fix on-prem grpc authentication Co-authored-by: Claudiu Dragalina-Paraipan <claudiu.dragalina@grafana.com> * Remove noAuth override --------- Co-authored-by: Claudiu Dragalina-Paraipan <claudiu.dragalina@grafana.com>
This commit is contained in:
parent
d8245966a4
commit
c76d1e04e8
@ -104,6 +104,7 @@ func newInProcLegacyClient(server *legacyServer) (authzlib.MultiTenantClient, er
|
|||||||
return authzlib.NewLegacyClient(
|
return authzlib.NewLegacyClient(
|
||||||
&authzlib.MultiTenantClientConfig{},
|
&authzlib.MultiTenantClientConfig{},
|
||||||
authzlib.WithGrpcConnectionLCOption(channel),
|
authzlib.WithGrpcConnectionLCOption(channel),
|
||||||
|
authzlib.WithNamespaceFormatterLCOption(authnlib.OnPremNamespaceFormatter),
|
||||||
authzlib.WithDisableAccessTokenLCOption(),
|
authzlib.WithDisableAccessTokenLCOption(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -126,6 +127,7 @@ func newGrpcLegacyClient(address string) (authzlib.MultiTenantClient, error) {
|
|||||||
grpc.WithUnaryInterceptor(clientInterceptor.UnaryClientInterceptor),
|
grpc.WithUnaryInterceptor(clientInterceptor.UnaryClientInterceptor),
|
||||||
grpc.WithStreamInterceptor(clientInterceptor.StreamClientInterceptor),
|
grpc.WithStreamInterceptor(clientInterceptor.StreamClientInterceptor),
|
||||||
),
|
),
|
||||||
|
authzlib.WithNamespaceFormatterLCOption(authnlib.OnPremNamespaceFormatter),
|
||||||
// TODO(drclau): remove this once we have access token support on-prem
|
// TODO(drclau): remove this once we have access token support on-prem
|
||||||
authzlib.WithDisableAccessTokenLCOption(),
|
authzlib.WithDisableAccessTokenLCOption(),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user