authlete 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTMyMGRhYzM5MjFmMWQxM2Y5YmFiNDExMjM5YjYxMmU3MGVhMzg0Nw==
4
+ MmQ0NzVjYWE5OTM0MjRlODJmZTQwNDA5MmI4MTQ4NjBkNjFmMmRlMQ==
5
5
  data.tar.gz: !binary |-
6
- NzMwNjMzNGIzMGRhNTE2NjQ0YzA3ZjQ0NjkwYWI5YmRhZTdmMWYwMQ==
6
+ MDk5ZDljMTMwMmYxYzNjYjkwMjVkNzA2NmViMWU0NTQ2YzhiNWEyNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmI2NDNkNTg3YmYyNGI1NzMxZjg0YzkwMmNmZjg1Y2MzZmU2NWU1NGI1ZjEy
10
- ZGU4NjQzZGJkZjlmNWNhMmNlMTUwYWU3OTViNWU5YzFjZWExNzdmODgyZTk4
11
- ZjRlY2NlYzRjM2JlN2M5MDRhNWFkODNjODNlZGIzMDZkODhkYTk=
9
+ M2U0ZjdkNmU0Njk5NGZkYzMzNTcyZDYxMzg5NjQxNDMxODlmOWQyMDRiN2Uy
10
+ YTQ5YTg0NjViZWFmOGU1OGE4MzhjZDA4OTBlYWI1MjM3MDc0MTljZTEyNTRj
11
+ MzM2MTQzZjIyZTcyMDg5ZmI2MDRkNjY5N2ViZTU4OTYxYTMyZGI=
12
12
  data.tar.gz: !binary |-
13
- ZTEyMzZlZmZjMzg4OWY5MjA3YzMzZmI4YTQ0YTQ2Y2NjYzIwZDNiZjQ4NjIx
14
- MDVkZDA4NDhkZTVhMzBhMzg4NTYzZjBhOTVhOWFjZmI4YmVhMWYwOGRmYmVm
15
- MDhjMjZhYTg1NGU2NWE4MDAxNTM5ZjViZWU1NjBlNzBhMzNlNGY=
13
+ ODUwY2RhZmJhNzVhNjczNzM3NWMzNjM5ZjczZTZlYTQ1MzdmZmUwMzBhYWY3
14
+ NTdhNjE0ZTE1YzU2MGM2ZGI2MmQyODc2NWFmNDM3MTk4NDE2MjI1MmE0MmMw
15
+ ZTAyNDIyOTUxZWU1YzcwYzkwNTQ2ZWNlYzViYWJiNjcxOTU1NmE=
@@ -28,6 +28,12 @@ module Authlete
28
28
  autoload :Host, 'authlete/host'
29
29
  autoload :Utility, 'authlete/utility'
30
30
 
31
+ module Model
32
+ autoload :Scope, 'authlete/model/scope'
33
+ autoload :Service, 'authlete/model/service'
34
+ autoload :SnsCredentials, 'authlete/model/sns-credentials'
35
+ end
36
+
31
37
  module Request
32
38
  autoload :AuthenticationCallbackRequest, 'authlete/request/authentication-callback-request'
33
39
  end
@@ -0,0 +1,32 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2015 Authlete, Inc.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+
18
+ module Authlete
19
+ module Model
20
+ class Scope
21
+ # The description about this scope. (String)
22
+ attr_accessor :description
23
+
24
+ # The name of this scope. (String)
25
+ attr_accessor :name
26
+
27
+ # The flag to indicate whether this scope is included in the
28
+ # default scope set. (boolean)
29
+ attr_accessor :defaultEntry
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,141 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2015 Authlete, Inc.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+
18
+ module Authlete
19
+ module Model
20
+ class Service
21
+ # The duration of access tokens in seconds. (Integer)
22
+ attr_accessor :accessTokenDuration
23
+
24
+ # The access token type. (String)
25
+ attr_accessor :accessTokenType
26
+
27
+ # The API key. (Long)
28
+ attr_accessor :apiKey
29
+
30
+ # The API secret. (String)
31
+ attr_accessor :apiSecret
32
+
33
+ # The API key to access the authentication callback endpoint. (String)
34
+ attr_accessor :authenticationCallbackApiKey
35
+
36
+ # The API secret to access the authentication callback endpoint. (String)
37
+ attr_accessor :authenticationCallbackApiSecret
38
+
39
+ # The URI of the authentication callback endpoint. (URI)
40
+ attr_accessor :authenticationCallbackEndpoint
41
+
42
+ # The URI of the authorization endpoint. (URI)
43
+ attr_accessor :authorizationEndpoint
44
+
45
+ # The description of this service. (String)
46
+ attr_accessor :description
47
+
48
+ # The duration of ID tokens in seconds. (Integer)
49
+ attr_accessor :idTokenDuration
50
+
51
+ # The issuer identifier of this OpenID Provider. (URI)
52
+ attr_accessor :issuer
53
+
54
+ # The JSON Web Key Set of this service. (String)
55
+ attr_accessor :jwks
56
+
57
+ # The URI of the service's JSON Web Key Set. (URI)
58
+ attr_accessor :jwksUri
59
+
60
+ # The service number. (Integer)
61
+ attr_accessor :number
62
+
63
+ # The URI of the service's policy page. (URI)
64
+ attr_accessor :policyUri
65
+
66
+ # The duration of refresh tokens in seconds. (Integer)
67
+ attr_accessor :refreshTokenDuration
68
+
69
+ # The URI of the registration endpoint. (URI)
70
+ attr_accessor :registrationEndpoint
71
+
72
+ # The URI of the service's documentation. (URI)
73
+ attr_accessor :serviceDocumentation
74
+
75
+ # The service name. (String)
76
+ attr_accessor :serviceName
77
+
78
+ # The service owner number. (Integer)
79
+ attr_accessor :serviceOwnerNumber
80
+
81
+ # The list of SNS credentials. (SnsCredentials array)
82
+ attr_accessor :snsCredentials
83
+
84
+ # The list of supported ACRs. (String array)
85
+ attr_accessor :supportedAcrs
86
+
87
+ # The list of supported claim locales. (String array)
88
+ attr_accessor :supportedClaimLocales
89
+
90
+ # The list of supported claims. (String array)
91
+ attr_accessor :supportedClaims
92
+
93
+ # The list of supported claim types. (String array)
94
+ #
95
+ # Valid values are "NORMAL", "AGGREGATED" and "DISTRIBUTED".
96
+ attr_accessor :supportedClaimTypes
97
+
98
+ # The list of supported values of +display+ parameter. (String array)
99
+ #
100
+ # Valid values are "PAGE", "POPUP", "TOUCH" and "WAP".
101
+ attr_accessor :supportedDisplays
102
+
103
+ # The list of supported grant types. (String array)
104
+ #
105
+ # Valid values are "AUTHORIZATION_CODE", "IMPLICIT", "PASSWORD",
106
+ # "CLIENT_CREDENTIALS" and "REFRESH_TOKEN".
107
+ attr_accessor :supportedGrantTypes
108
+
109
+ # The list of supported response types. (String array)
110
+ #
111
+ # Valid values are "NONE", "CODE", "TOKEN", "ID_TOKEN",
112
+ # "CODE_TOKEN", "CODE_ID_TOKEN", "ID_TOKEN_TOKEN" and
113
+ # "CODE_ID_TOKEN_TOKEN".
114
+ attr_accessor :supportedResponseTypes
115
+
116
+ # The list of supported scopes. (Scope array)
117
+ attr_accessor :supportedScopes
118
+
119
+ # The list of supported SNSes. (Sns array)
120
+ attr_accessor :supportedSnses
121
+
122
+ # The list of supported client authentication methods at the token endpoint. (String array)
123
+ #
124
+ # Valid values are "NONE", "CLIENT_SECRET_BASIC", "CLIENT_SECRET_POST",
125
+ # "CLIENT_SECRET_JWT" and "PRIVATE_KEY_JWT".
126
+ attr_accessor :supportedTokenAuthMethods
127
+
128
+ # The list of supported UI locales. (String array)
129
+ attr_accessor :supportedUiLocales
130
+
131
+ # The URI of the token endpoint. (URI)
132
+ attr_accessor :tokenEndpoint
133
+
134
+ # The URI of the service's "Terms Of Service" page. (URI)
135
+ attr_accessor :tosUri
136
+
137
+ # The URI of UserInfo endpoint. (URI)
138
+ attr_accessor :userInfoEndpoint
139
+ end
140
+ end
141
+ end
@@ -0,0 +1,33 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2015 Authlete, Inc.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+
18
+ module Authlete
19
+ module Model
20
+ class SnsCredentials
21
+ # The API key. (String)
22
+ attr_accessor :apiKey
23
+
24
+ # The API secret. (String)
25
+ attr_accessor :apiSecret
26
+
27
+ # The SNS. (String)
28
+ #
29
+ # Valid values are "FACEBOOK".
30
+ attr_accessor :sns
31
+ end
32
+ end
33
+ end
@@ -1,3 +1,3 @@
1
1
  module Authlete
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiko Kawasaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-16 00:00:00.000000000 Z
11
+ date: 2015-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -70,6 +70,9 @@ files:
70
70
  - lib/authlete/authentication-server.rb
71
71
  - lib/authlete/client.rb
72
72
  - lib/authlete/host.rb
73
+ - lib/authlete/model/scope.rb
74
+ - lib/authlete/model/service.rb
75
+ - lib/authlete/model/sns-credentials.rb
73
76
  - lib/authlete/request/authentication-callback-request.rb
74
77
  - lib/authlete/response/authentication-callback-response.rb
75
78
  - lib/authlete/response/base-response.rb