Sha256: 2689e0f02ec130010285b0411b9c4d8a66794f5d0e5b711f1002d519ea363607

Contents?: true

Size: 935 Bytes

Versions: 9

Compression:

Stored size: 935 Bytes

Contents

# CloudFoundry UAA Gem

Client gem for interacting with the [CloudFoundry UAA server](https://github.com/cloudfoundry/uaa)

For documentation see: https://rubygems.org/gems/cf-uaa-lib

## Install from rubygems

    $ gem install cf-uaa-lib

## Build from source

    $ bundle install
    $ gem build cf-uaa-lib.gemspec
    $ gem install cf-uaa-lib<version>.gem

## Use the gem

    #!/usr/bin/env ruby
    require 'uaa'
    token_issuer = CF::UAA::TokenIssuer.new("https://uaa.cloudfoundry.com", "vmc")
    puts token_issuer.prompts.inspect
    token = token_issuer.implicit_grant_with_creds(username: "<your_username>", password: "<your_password>")
    token_info = TokenCoder.decode(token.info["access_token"], nil, nil, false) #token signature not verified
    puts token_info["user_name"]

## Tests

Run the tests with rake:

    $ bundle exec rake test

Run the tests and see a fancy coverage report:

    $ bundle exec rake cov

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cf-uaa-lib-1.3.10 README.md
cf-uaa-lib-1.3.9 README.md
cf-uaa-lib-1.3.8 README.md
cf-uaa-lib-1.3.7 README.md
cf-uaa-lib-1.3.6 README.md
cf-uaa-lib-1.3.5 README.md
cf-uaa-lib-1.3.4 README.md
cf-uaa-lib-1.3.3 README.md
cf-uaa-lib-1.3.2 README.md