mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 04:15:54 +02:00
Merge branch 'master' into releases/1.6.x
This commit is contained in:
commit
ccc278ad87
1 changed files with 2 additions and 0 deletions
|
@ -315,6 +315,8 @@ func (a *apic) Authenticate(ctx context.Context, config *csconfig.OnlineApiClien
|
||||||
|
|
||||||
a.apiClient.GetClient().Transport.(*apiclient.JWTTransport).Token = token
|
a.apiClient.GetClient().Transport.(*apiclient.JWTTransport).Token = token
|
||||||
a.apiClient.GetClient().Transport.(*apiclient.JWTTransport).Expiration = exp
|
a.apiClient.GetClient().Transport.(*apiclient.JWTTransport).Expiration = exp
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug("No token found, authenticating")
|
log.Debug("No token found, authenticating")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue