Skip to content

Commit 702fb0a

Browse files
authored
Merge pull request #47 from RadiusNetworks/add-organizations
allow the gem to pass through org/service/roles info
2 parents a9fa5dc + a2e17c1 commit 702fb0a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/omniauth/strategies/radius.rb

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def self.provider_url
3333
"uid",
3434
"confirmed",
3535
"teams",
36+
"organizations",
37+
"services",
38+
"service_roles",
3639
"linked_accounts",
3740
"admin",
3841
"subscription_level",

spec/support/fixtures.rb

+9
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ def self.auth_hash
1414
"email"=>"[email protected]",
1515
"uid"=>1,
1616
"confirmed"=>true,
17+
"organizations"=>[
18+
{"uid"=>1, "name"=>"Radius Networks"},
19+
],
20+
"services"=>[
21+
{"uid"=>1, "slug"=>"pickup", "name"=>"FlyBuy Pickup"},
22+
],
23+
"service_roles"=>[
24+
{"uid"=>1, "role"=>"owner", "team_id"=>1, "service_id"=>1, "organization_id"=>1},
25+
],
1726
"teams"=>[
1827
{"id"=>1, "name"=>"Radius Networks", "uid"=>1},
1928
{"id"=>2, "name"=>"TARDIS", "uid"=>2}

0 commit comments

Comments
 (0)