README.md in omniauth-parallelmarkets-0.1.0 vs README.md in omniauth-parallelmarkets-0.1.1
- old
+ new
@@ -3,11 +3,11 @@
# OmniAuth ParallelMarkets
This gem contains the [Parallel Markets](https://parallelmarkets.com) strategy for OmniAuth.
-ParallelMarkets uses the OAuth2 flow, you can read about at [docs.parallelmarkets.com/api](https://docs.parallelmarkets.com/api/).
+ParallelMarkets uses the OAuth2 flow, you can read about at [developer.parallelmarkets.com/api](https://developer.parallelmarkets.com).
## Installation
Add this line to your application's Gemfile:
@@ -26,10 +26,11 @@
## Usage
You'll need to register your application with [Parallel Markets Support](mailto:help@parallelmarkets.com) and get `client_id` & `client_secret`.
Here's an example for adding the middleware to a Rails app in config/initializers/omniauth.rb:
+
```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider :parallelmarkets, ENV["CLIENT_ID"], ENV["CLIENT_SECRET"]
end
```
@@ -38,11 +39,11 @@
## Sample Auth Hash
```ruby
{
"provider"=>"parallelmarkets",
- "uid"=>"123456",
+ "uid"=>"VXNlcjox",
"info"=> {
"name"=>"Snake Plissken",
"email"=>"snake@example.com",
"first_name"=>"Snake"
"last_name"=>"Plissken"
@@ -52,9 +53,11 @@
"refresh_token"=>"parallel_refresh_token",
"expires_at"=>1451681914,
"expires"=>true
},
"extra"=> {
+ "type"=>"individual",
+ "user_id"=>"VXNlcjox",
"accreditations"=>[
{
"id"=>321,
"status"=>"current",
"expires_at"=>1565317542,
\ No newline at end of file