cloulu 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cfoundry/v1/client.rb +1 -1
- data/lib/uaa/token_issuer.rb +1 -1
- data/lib/vmc/cli.rb +2 -0
- data/lib/vmc/version.rb +1 -1
- metadata +1 -1
data/lib/cfoundry/v1/client.rb
CHANGED
@@ -12,7 +12,7 @@ module CFoundry::V1
|
|
12
12
|
# Create a new Client for interfacing with the given target.
|
13
13
|
#
|
14
14
|
# A token may also be provided to skip the login step.
|
15
|
-
def initialize(target = "
|
15
|
+
def initialize(target = "https://api.cloulu.com", token = nil)
|
16
16
|
@base = Base.new(target, token)
|
17
17
|
end
|
18
18
|
|
data/lib/uaa/token_issuer.rb
CHANGED
@@ -129,7 +129,7 @@ class TokenIssuer
|
|
129
129
|
# @return [TokenInfo]
|
130
130
|
def implicit_grant_with_creds(credentials, scope = nil)
|
131
131
|
# this manufactured redirect_uri is a convention here, not part of OAuth2
|
132
|
-
redir_uri = "https://uaa.
|
132
|
+
redir_uri = "https://uaa.cloulu.com/redirect/#{@client_id}"
|
133
133
|
uri = authorize_path_args("token", redir_uri, scope, state = random_state)
|
134
134
|
|
135
135
|
# the accept header is only here so the uaa will issue error replies in json to aid debugging
|
data/lib/vmc/cli.rb
CHANGED
data/lib/vmc/version.rb
CHANGED