stormpath-sdk 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +7 -0
- data/lib/stormpath-sdk/oauth/verify_token.rb +6 -2
- data/lib/stormpath-sdk/version.rb +1 -1
- data/spec/resource/application_spec.rb +8 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46abd12e70ce4548e31d07ce66c71ba8dab69f2f
|
4
|
+
data.tar.gz: 78fad31579495fabac7d82f64116ea20bd2bd6dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b73fa8bebef8366861da8e42a728d3a08bb505454d54240656cea0e013d5800e414c585ced352ea9bcb77b8f145277d95ac1fba737b11040c5616224afcd33b
|
7
|
+
data.tar.gz: ba78d09dfed54133aa832f5853e79258f48216f726d25d4aa3942b7fba1654e4bf7a425f87f3947ca51dc99742061da79fba996970cf44f233a9b51b9e2394b7
|
data/CHANGES.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
module Stormpath
|
2
|
-
module Oauth
|
2
|
+
module Oauth
|
3
3
|
class VerifyToken < Stormpath::Resource::Base
|
4
|
-
prop_reader :href, :
|
4
|
+
prop_reader :href, :jwt, :expanded_jwt
|
5
|
+
|
6
|
+
belongs_to :account
|
7
|
+
belongs_to :application
|
8
|
+
belongs_to :tenant
|
5
9
|
end
|
6
10
|
end
|
7
11
|
end
|
@@ -1157,7 +1157,7 @@ describe Stormpath::Resource::Application, :vcr do
|
|
1157
1157
|
expect(authenticate_oauth.access_token).not_to be_equal(aquire_token.access_token)
|
1158
1158
|
end
|
1159
1159
|
|
1160
|
-
it '
|
1160
|
+
it 'returns success with data' do
|
1161
1161
|
expect(authenticate_oauth.access_token).not_to be_empty
|
1162
1162
|
expect(authenticate_oauth.refresh_token).not_to be_empty
|
1163
1163
|
expect(authenticate_oauth.token_type).not_to be_empty
|
@@ -1174,12 +1174,15 @@ describe Stormpath::Resource::Application, :vcr do
|
|
1174
1174
|
expect(authenticate_oauth).to be_kind_of(Stormpath::Oauth::VerifyToken)
|
1175
1175
|
end
|
1176
1176
|
|
1177
|
-
it '
|
1177
|
+
it 'returns success on valid token' do
|
1178
1178
|
expect(authenticate_oauth.href).not_to be_empty
|
1179
|
-
expect(authenticate_oauth.account).
|
1180
|
-
expect(authenticate_oauth.
|
1179
|
+
expect(authenticate_oauth.account).to be_a(Stormpath::Resource::Account)
|
1180
|
+
expect(authenticate_oauth.account).to eq(account)
|
1181
|
+
expect(authenticate_oauth.application).to be_a(Stormpath::Resource::Application)
|
1182
|
+
expect(authenticate_oauth.application).to eq(application)
|
1181
1183
|
expect(authenticate_oauth.jwt).not_to be_empty
|
1182
|
-
expect(authenticate_oauth.tenant).
|
1184
|
+
expect(authenticate_oauth.tenant).to be_a(Stormpath::Resource::Tenant)
|
1185
|
+
expect(authenticate_oauth.tenant).to eq(test_api_client.tenant)
|
1183
1186
|
expect(authenticate_oauth.expanded_jwt).not_to be_empty
|
1184
1187
|
end
|
1185
1188
|
end
|