k2v-academy / K2View-Academy

Other
0 stars 0 forks source link

"Token timout" parameter of OAuth 2.0 Password Credentials HTTP interface #963

Closed AFOYQqhZ55j0hwYnWQTrk6rnwfNONSEeP6uheHC closed 10 months ago

AFOYQqhZ55j0hwYnWQTrk6rnwfNONSEeP6uheHC commented 10 months ago

How is the "Token timout" parameter of an HTTP interface with "OAuth 2.0 Password Credentials" authentication type used? Is the value in seconds or milliseconds? What does the value 0 mean?

F78aPg0zjWnRKWkYrBd6lShvmAYl8doniMtEnFN commented 10 months ago

Value is in seconds. Fabric will use it to get a new token or renew existing one (if authentication server provides one). If set as zero, it will consider the timeout returned by the authentication server. By setting your own, it allows you to get/renew a token ahead of their usual expiration time.