eda8cb39fd
Right now this is only hooked into the insecure RPC server and requires JWT authorization. If no JWT authorizer is setup in the configuration then we inject a disabled “authorizer” to always report that JWT authorization is disabled.
22 lines
404 B
Go
22 lines
404 B
Go
package agentpb
|
|
|
|
func (req *AutoConfigRequest) RequestDatacenter() string {
|
|
return req.Datacenter
|
|
}
|
|
|
|
func (req *AutoConfigRequest) IsRead() bool {
|
|
return false
|
|
}
|
|
|
|
func (req *AutoConfigRequest) AllowStaleRead() bool {
|
|
return false
|
|
}
|
|
|
|
func (req *AutoConfigRequest) TokenSecret() string {
|
|
return req.ConsulToken
|
|
}
|
|
|
|
func (req *AutoConfigRequest) SetTokenSecret(token string) {
|
|
req.ConsulToken = token
|
|
}
|