class Bosh::Director::Api::UaaUser
Attributes
token[R]
Public Class Methods
new(token)
click to toggle source
# File lib/bosh/director/api/uaa_identity_provider.rb, line 57 def initialize(token) @token = token end
Public Instance Methods
client()
click to toggle source
# File lib/bosh/director/api/uaa_identity_provider.rb, line 65 def client @token['client_id'] end
scopes()
click to toggle source
# File lib/bosh/director/api/uaa_identity_provider.rb, line 73 def scopes @token['scope'] end
username()
click to toggle source
# File lib/bosh/director/api/uaa_identity_provider.rb, line 69 def username @token['user_name'] end
username_or_client()
click to toggle source
# File lib/bosh/director/api/uaa_identity_provider.rb, line 61 def username_or_client @token['user_name'] || @token['client_id'] end