@@ -14,14 +14,12 @@ import (
14
14
)
15
15
16
16
const (
17
- defaultClientID = "bx"
18
- defaultClientSecret = "bx"
19
- defaultUAAClientID = "cf"
20
- defaultUAAClientSecret = ""
21
- crTokenParam = "cr_token"
22
- profileIDParam = "profile_id"
23
- profileNameParam = "profile_name"
24
- profileCRNParam = "profile_crn"
17
+ defaultClientID = "bx"
18
+ defaultClientSecret = "bx"
19
+ crTokenParam = "cr_token"
20
+ profileIDParam = "profile_id"
21
+ profileNameParam = "profile_name"
22
+ profileCRNParam = "profile_crn"
25
23
)
26
24
27
25
// Grant types
@@ -40,7 +38,6 @@ const (
40
38
// Response types
41
39
const (
42
40
ResponseTypeIAM authentication.ResponseType = "cloud_iam"
43
- ResponseTypeUAA authentication.ResponseType = "uaa"
44
41
ResponseTypeIMS authentication.ResponseType = "ims_portal"
45
42
ResponseTypeDelegatedRefreshToken authentication.ResponseType = "delegated_refresh_token" // #nosec G101 - this the API response grant type. Not a credential
46
43
)
@@ -191,10 +188,6 @@ type Token struct {
191
188
Scope string `json:"scope"`
192
189
Expiry time.Time `json:"expiration"`
193
190
194
- // Fields present when ResponseTypeUAA is set
195
- UAAToken string `json:"uaa_token"`
196
- UAARefreshToken string `json:"uaa_refresh_token"`
197
-
198
191
// Fields present when ResponseTypeIMS is set
199
192
IMSUserID int64 `json:"ims_user_id"`
200
193
IMSToken string `json:"ims_token"`
@@ -263,8 +256,6 @@ func DefaultConfig(iamEndpoint string) Config {
263
256
SessionEndpoint : iamEndpoint + "/v1/sessions" ,
264
257
ClientID : defaultClientID ,
265
258
ClientSecret : defaultClientSecret ,
266
- UAAClientID : defaultUAAClientID ,
267
- UAAClientSecret : defaultUAAClientSecret ,
268
259
}
269
260
}
270
261
@@ -285,13 +276,6 @@ func (c *client) GetToken(tokenReq *authentication.TokenRequest) (*Token, error)
285
276
tokenReq .SetValue (v )
286
277
287
278
responseTypes := tokenReq .ResponseTypes ()
288
- for _ , t := range responseTypes {
289
- if t == ResponseTypeUAA {
290
- v .Set ("uaa_client_id" , c .config .UAAClientID )
291
- v .Set ("uaa_client_secret" , c .config .UAAClientSecret )
292
- break
293
- }
294
- }
295
279
if len (responseTypes ) == 0 {
296
280
v .Set ("response_type" , ResponseTypeIAM .String ())
297
281
}
0 commit comments