etcd storage: prefix oauthaccess/authorize tokens with sha256~
@@ -105,8 +105,8 @@ var OpenshiftEtcdStorageData = map[schema.GroupVersionResource]etcddata.StorageD
},
},
gvr("oauth.openshift.io", "v1", "oauthaccesstokens"): {
- Stub: `{"clientName": "client1g", "metadata": {"name": "tokenneedstobelongenoughelseitwontworkg"}, "userName": "user", "scopes": ["user:info"], "redirectURI": "https://something.com/", "userUID": "cannot be empty"}`,
- ExpectedEtcdPath: "openshift.io/oauth/accesstokens/tokenneedstobelongenoughelseitwontworkg",
+ Stub: `{"clientName": "client1g", "metadata": {"name": "sha256~tokenneedstobelongenoughelseitwontworkg"}, "userName": "user", "scopes": ["user:info"], "redirectURI": "https://something.com/", "userUID": "cannot be empty"}`,
+ ExpectedEtcdPath: "openshift.io/oauth/accesstokens/sha256~tokenneedstobelongenoughelseitwontworkg",
Prerequisites: []etcddata.Prerequisite{
{
GvrData: gvr("oauth.openshift.io", "v1", "oauthclients"),
@@ -115,8 +115,8 @@ var OpenshiftEtcdStorageData = map[schema.GroupVersionResource]etcddata.StorageD
},
},
gvr("oauth.openshift.io", "v1", "oauthauthorizetokens"): {
- Stub: `{"clientName": "client0g", "metadata": {"name": "tokenneedstobelongenoughelseitwontworkg"}, "userName": "user", "scopes": ["user:info"], "redirectURI": "https://something.com/", "userUID": "cannot be empty", "expiresIn": 86400}`,
- ExpectedEtcdPath: "openshift.io/oauth/authorizetokens/tokenneedstobelongenoughelseitwontworkg",
+ Stub: `{"clientName": "client0g", "metadata": {"name": "sha256~tokenneedstobelongenoughelseitwontworkg"}, "userName": "user", "scopes": ["user:info"], "redirectURI": "https://something.com/", "userUID": "cannot be empty", "expiresIn": 86400}`,
+ ExpectedEtcdPath: "openshift.io/oauth/authorizetokens/sha256~tokenneedstobelongenoughelseitwontworkg",
Prerequisites: []etcddata.Prerequisite{
{
GvrData: gvr("oauth.openshift.io", "v1", "oauthclients"),
