Class: Bosh::Cli::Client::Uaa::TokenDecoder

Inherits:
Object
  • Object
show all
Defined in:
lib/cli/client/uaa/token_decoder.rb

Instance Method Summary collapse

Instance Method Details

#decode(token) ⇒ Object


6
7
8
9
10
11
12
# File 'lib/cli/client/uaa/token_decoder.rb', line 6

def decode(token)
  access_token = token.info['access_token'] || token.info[:access_token]
  CF::UAA::TokenCoder.decode(
    access_token,
    {verify: false}, # token signature not verified because CLI doesn't have the secret key
    nil, nil)
end