Skip to content

Commit

Permalink
update readme + links to more example applications
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Jul 22, 2018
1 parent 8b95c66 commit ecc32f7
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,18 @@ CloudFoundry UAA OmniAuth Strategy

OmniAuth strategy for authenticating users using the CloudFoundry UAA server.

Set up a local ruby environment (so sudo not required):
Add the following to your `Gemfile`:

$ rvm use 1.9.2
```text
gem 'omniauth-uaa-oauth2'
```

or
For example usage see:

$ rbenv global 1.9.2-p180
* the `examples/config.ru` sample code
* https://github.com/starkandwayne/ultimate-guide-to-uaa-examples/tree/master/ruby/omniauth-login-only
* https://github.com/starkandwayne/ultimate-guide-to-uaa-examples/tree/master/ruby/omniauth-login-and-uaa-api-calls
* https://github.com/starkandwayne/ultimate-guide-to-uaa-examples/tree/master/ruby/resource-server-wrapper-ui

see: https://rvm.io/ or http://rbenv.org/

Build and install the cf-uaa-lib gem located at https://github.com/cloudfoundry/cf-uaa-lib

Build the gem

$ bundle install
$ bundle exec gem build omniauth-uaa-oauth2.gemspec

Install it

$ gem install omniauth-uaa-oauth2-*.gem


See the examples folder for details on how to use it.

Warning: Unlike the omniauth-oauth2 gem, this gem does not support the oauth2 'state' security parameter.

0 comments on commit ecc32f7

Please sign in to comment.