Merge pull request #1417 from RichardScothern/token-print
Print the correct token expiration timemaster
						commit
						0751bb3179
					
				| 
						 | 
					@ -285,9 +285,9 @@ func (th *tokenHandler) fetchToken(params map[string]string) (token *tokenRespon
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if tr.ExpiresIn < minimumTokenLifetimeSeconds {
 | 
						if tr.ExpiresIn < minimumTokenLifetimeSeconds {
 | 
				
			||||||
		logrus.Debugf("Increasing token expiration to: %d seconds", tr.ExpiresIn)
 | 
					 | 
				
			||||||
		// The default/minimum lifetime.
 | 
							// The default/minimum lifetime.
 | 
				
			||||||
		tr.ExpiresIn = minimumTokenLifetimeSeconds
 | 
							tr.ExpiresIn = minimumTokenLifetimeSeconds
 | 
				
			||||||
 | 
							logrus.Debugf("Increasing token expiration to: %d seconds", tr.ExpiresIn)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if tr.IssuedAt.IsZero() {
 | 
						if tr.IssuedAt.IsZero() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue