MCPcopy Index your code
hub / github.com/cloudfoundry/cli / SetupResources

Method SetupResources

api/uaa/resources.go:8–22  ·  view source on GitHub ↗

SetupResources configures the client to use the specified settings and diescopers the UAA and Authentication resources

(uaaURL string, loginURL string)

Source from the content-addressed store, hash-verified

6
7// SetupResources configures the client to use the specified settings and diescopers the UAA and Authentication resources
8func (client *Client) SetupResources(uaaURL string, loginURL string) error {
9 info := NewInfo(uaaURL, loginURL)
10
11 resources := map[string]string{
12 "uaa": uaaURL,
13 "authorization_endpoint": loginURL,
14 }
15
16 client.router = internal.NewRouter(internal.APIRoutes, resources)
17 client.Info = info
18
19 client.config.SetUAAEndpoint(uaaURL)
20
21 return nil
22}

Callers 3

newWrappedUAAClientFunction · 0.95
NewTestUAAClientAndStoreFunction · 0.95
resources_test.goFile · 0.80

Calls 3

NewRouterFunction · 0.92
NewInfoFunction · 0.85
SetUAAEndpointMethod · 0.65

Tested by 1

NewTestUAAClientAndStoreFunction · 0.76