Sha256: 59f6c50b49618a455a14227534f8fb46c094b6bdfe83bfa88d0546451c01c033

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

# OmniAuth::ProviderRegistry

Provides access to your application's configured OmniAuth providers

## Motivation

Your configured providers contain a lot of information that may be useful in
other parts of your application. Sometimes you specify the information when you
configure the provider, so you already have access to it. But there is also
some information built into the strategy itself, that is not easy to access.

The `ProviderRegistry` allows you to retrieve all information available for
your configured strategies.

## Usage

```
configured_provider = OmniAuth::ProviderRegistry.find(:github)
configured_provider.options.client_id           # 1234567890123234
configured_provider.options.client_options.site # https://api.github.com
```

## Installation

Add this line to your application's Gemfile:

    gem 'omniauth-provider_registry'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install omniauth-provider_registry


## Contributing

1. Fork it ( https://github.com/joshuaflanagan/omniauth-provider_registry/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-provider_registry-0.8.0 README.md