mirror of
https://github.com/apache/jclouds.git
synced 2025-02-18 16:11:36 +00:00
Merge pull request #1430 from maginatics/keystone-1.1-correct-auth-timeout-1.6.x
Correct Keystone 1.1 authentication token timeout
This commit is contained in:
commit
a4bf90cb62
@ -82,7 +82,7 @@ public class NovaApiMetadata extends BaseRestApiMetadata {
|
|||||||
// Keystone 1.1 expires tokens after 24 hours and allows renewal 1 hour
|
// Keystone 1.1 expires tokens after 24 hours and allows renewal 1 hour
|
||||||
// before expiry by default. We choose a value less than the latter
|
// before expiry by default. We choose a value less than the latter
|
||||||
// since the former persists between jclouds invocations.
|
// since the former persists between jclouds invocations.
|
||||||
properties.setProperty(PROPERTY_SESSION_INTERVAL, 30 * 60 * 60 + "");
|
properties.setProperty(PROPERTY_SESSION_INTERVAL, 30 * 60 + "");
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ public class SwiftApiMetadata extends BaseRestApiMetadata {
|
|||||||
// Keystone 1.1 expires tokens after 24 hours and allows renewal 1 hour
|
// Keystone 1.1 expires tokens after 24 hours and allows renewal 1 hour
|
||||||
// before expiry by default. We choose a value less than the latter
|
// before expiry by default. We choose a value less than the latter
|
||||||
// since the former persists between jclouds invocations.
|
// since the former persists between jclouds invocations.
|
||||||
properties.setProperty(PROPERTY_SESSION_INTERVAL, 30 * 60 * 60 + "");
|
properties.setProperty(PROPERTY_SESSION_INTERVAL, 30 * 60 + "");
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user