gds-sso 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,7 +41,7 @@ class OmniAuth::Strategies::Gds < OmniAuth::Strategies::OAuth2
41
41
  end
42
42
 
43
43
  def user_hash
44
- @user_hash ||= MultiJson.decode(fetch_user_data)
44
+ @user_hash ||= MultiJson.decode(fetch_user_data)['user']
45
45
  end
46
46
 
47
47
  def build_auth_hash
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
@@ -0,0 +1,10 @@
1
+ -- Clean data from database
2
+ DELETE FROM `oauth_access_tokens`;
3
+ DELETE FROM `oauth_authorization_codes`;
4
+ DELETE FROM `oauth_authorizations`;
5
+ DELETE FROM `oauth_clients`;
6
+ DELETE FROM `users`;
7
+
8
+ -- Setup fixture data
9
+ INSERT INTO `oauth_clients` VALUES (1,'GDS_SSO integration test','gds-sso-test','secret','http://www.example-client.com/auth/gds/callback');
10
+ INSERT INTO `users` (id,name,email,encrypted_password,uid) VALUES (1,'Test User','test@example-client.com','$2a$04$MdMkVFwTq5GLJJkHS8GLIe6dK1.C4ozzba5ZS5Ks2b/NenVsMGGRW','integration-uid');
@@ -0,0 +1,5 @@
1
+ test: &test
2
+ adapter: sqlite3
3
+ database: db/test.sqlite3
4
+ pool: 5
5
+ timeout: 5000
@@ -1,8 +1,5 @@
1
- test:
2
- adapter: mysql2
3
- encoding: utf8
4
- reconnect: false
5
- pool: 5
6
- username: signonotron2
7
- password: signonotron2
8
- database: signonotron2_integration_test
1
+ test: &test
2
+ adapter: sqlite3
3
+ database: db/test.sqlite3
4
+ pool: 5
5
+ timeout: 5000