authlete 1.26.1 → 1.28.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c0a0d1cdf37a68632b896d2e69f2d9a40b9e5465cf30de8fc5ca1c42ac8fd8a
4
- data.tar.gz: ff5bda944050f3ca97696573c3c7b45f4b958bf233135db376c85c09c0ca8ca9
3
+ metadata.gz: 998f791a1e948dc8aeee643775ab8236b5fcfcd19d23388a9ff0155b95486db5
4
+ data.tar.gz: fa726f604cb3d6527676125f748ca76529083224753dfc88c16ac959118fcab0
5
5
  SHA512:
6
- metadata.gz: b58b1609f1b72fe535c5ea743db94aa111d7a2662d44d5936c879cd865544286fdbae382de7b376be5312bbfc8e2a03d2cd11dcb28be5f86fa630e034e0609f3
7
- data.tar.gz: 9d5424767bff36a0ab39f8e9f295cdc4829fa619ecec665284cd8ed44794a7400b0f7b2205d369198846e950ba14104e7d989b0bd9bbed8695812e748e35754b
6
+ metadata.gz: a3109b33580df6d4822cfad82e53c93f71308be514608302e5ee5ff1b99243afc4e490f45207435532644001a17c407685094ef8eae4c8107a2e61368b03ed8c
7
+ data.tar.gz: 25b65a63e5fbad1335986a9018ba12420e5494d8e22dcd3a7d6785ff2accc0a583b967f94ae3e375fbb8e1ec2173f07a98b88495f4ff6e0a6f7b9c506e5b1342
data/authlete.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'authlete/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "authlete"
8
8
  spec.version = Authlete::VERSION
9
- spec.authors = ["Takahiko Kawasaki", "Hideki Ikeda"]
9
+ spec.authors = ["Takahiko Kawasaki", "Hideki Ikeda", "Seth Wright"]
10
10
  spec.email = ["admin@authlete.com"]
11
11
  spec.summary = "A library for Authlete Web APIs"
12
12
  spec.description = "A library for Authlete Web APIs. See https://docs.authlete.com/ for details."
@@ -1,6 +1,6 @@
1
1
  # :nodoc:
2
2
  #
3
- # Copyright (C) 2014-2020 Authlete, Inc.
3
+ # Copyright (C) 2014-2022 Authlete, Inc.
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -15,6 +15,9 @@
15
15
  # limitations under the License.
16
16
 
17
17
 
18
+ require 'json'
19
+
20
+
18
21
  module Authlete
19
22
  module Model
20
23
  class Client < Authlete::Model::Base
@@ -321,6 +324,14 @@ module Authlete
321
324
  alias_method :pkce_s256_required, :pkceS256Required
322
325
  alias_method :pkce_s256_required=, :pkceS256Required=
323
326
 
327
+ attr_accessor :automaticallyRegistered
328
+ alias_method :automatically_registered, :automaticallyRegistered
329
+ alias_method :automatically_registered=, :automaticallyRegistered=
330
+
331
+ attr_accessor :explicitlyRegistered
332
+ alias_method :explicitly_registered, :explicitlyRegistered
333
+ alias_method :explicitly_registered=, :explicitlyRegistered=
334
+
324
335
  private
325
336
 
326
337
  def defaults
@@ -404,6 +415,8 @@ module Authlete
404
415
  singleAccessTokenPerSubject: false,
405
416
  pkceRequired: false,
406
417
  pkceS256Required: false,
418
+ automaticallyRegistered: false,
419
+ explicitlyRegistered: false,
407
420
  }
408
421
  end
409
422
 
@@ -487,6 +500,8 @@ module Authlete
487
500
  @singleAccessTokenPerSubject = hash[:singleAccessTokenPerSubject]
488
501
  @pkceRequired = hash[:pkceRequired]
489
502
  @pkceS256Required = hash[:pkceS256Required]
503
+ @automaticallyRegistered = hash[:automaticallyRegistered]
504
+ @explicitlyRegistered = hash[:explicitlyRegistered]
490
505
  end
491
506
 
492
507
  def to_hash_value(key, var)
@@ -502,6 +517,121 @@ module Authlete
502
517
  raw_val
503
518
  end
504
519
  end
520
+
521
+ public
522
+
523
+ def standard_metadata(delete_zero = true, delete_false = true, delete_nil = true)
524
+ metadata = {
525
+ client_id: "#{@clientId}",
526
+ redirect_uris: @redirectUris,
527
+ response_types: standard_response_types(@responseTypes),
528
+ grant_types: standard_grant_types(@grantTypes),
529
+ application_type: from_application_type(@applicationType),
530
+ contacts: @contacts,
531
+ client_name: @clientName,
532
+ logo_uri: @logoUri,
533
+ client_uri: @clientUri,
534
+ policy_uri: @policyUri,
535
+ tos_uri: @tosUri,
536
+ jwks_uri: @jwksUri,
537
+ jwks: json_parse(@jwks),
538
+ sector_identifier_uri: @sectorIdentifierUri,
539
+ subject_type: from_subject_type(@subjectType),
540
+ id_token_signed_response_alg: from_jwsalg(@idTokenSignAlg),
541
+ id_token_encrypted_response_alg: from_jwealg(@idTokenEncryptionAlg),
542
+ id_token_encrypted_response_enc: from_jweenc(@idTokenEncryptionEnc),
543
+ userinfo_signed_response_alg: from_jwsalg(@userInfoSignAlg),
544
+ userinfo_encrypted_response_alg: from_jwealg(@userInfoEncryptionAlg),
545
+ userinfo_encrypted_response_enc: from_jweenc(@userInfoEncryptionEnc),
546
+ request_object_signing_alg: from_jwsalg(@requestSignAlg),
547
+ request_object_encryption_alg: from_jwealg(@requestEncryptionAlg),
548
+ request_object_encryption_enc: from_jweenc(@requestEncryptionEnc),
549
+ token_endpoint_auth_method: from_client_auth_method(@tokenAuthMethod),
550
+ token_endpoint_auth_signing_alg: from_jwsalg(@tokenAuthSignAlg),
551
+ default_max_age: @defaultMaxAge,
552
+ default_acr_values: @defaultAcrs,
553
+ require_auth_time: @authTimeRequired,
554
+ initiate_login_uri: @loginUri,
555
+ request_uris: @requestUris,
556
+ tls_client_auth_subject_dn: @tlsClientAuthSubjectDn,
557
+ tls_client_auth_san_dns: @tlsClientAuthSanDns,
558
+ tls_client_auth_san_uri: @tlsClientAuthSanUri,
559
+ tls_client_auth_san_ip: @tlsClientAuthSanIp,
560
+ tls_client_auth_san_email: @tlsClientAuthSanEmail,
561
+ tls_client_certificate_bound_access_tokens: @tlsClientCertificateBoundAccessTokens,
562
+ software_id: @softwareId,
563
+ software_version: @softwareVersion,
564
+ authorization_signed_response_alg: from_jwsalg(@authorizationSignAlg),
565
+ authorization_encrypted_response_alg: from_jwealg(@authorizationEncryptionAlg),
566
+ authorization_encrypted_response_enc: from_jweenc(@authorizationEncryptionEnc),
567
+ backchannel_token_delivery_mode: from_delivery_mode(@bcDeliveryMode),
568
+ backchannel_client_notification_endpoint: @bcNotificationEndpoint,
569
+ backchannel_authentication_request_signing_alg: from_jwsalg(@bcRequestSignAlg),
570
+ backchannel_user_code_parameter: @bcUserCodeRequired,
571
+ authorization_details_types: @authorizationDetailsTypes,
572
+ digest_algorithm: @digestAlgorithm
573
+ }
574
+
575
+ if delete_nil
576
+ metadata.compact!
577
+ end
578
+
579
+ if delete_false
580
+ metadata = metadata.delete_if {|key, value| value == false}
581
+ end
582
+
583
+ if delete_zero
584
+ metadata = metadata.delete_if {|key, value| value == 0}
585
+ end
586
+
587
+ metadata
588
+ end
589
+
590
+ private
591
+
592
+ def standard_response_types(array)
593
+ array.nil? ? nil : array.map do |element|
594
+ Authlete::Types::ResponseType::constant_get(element)
595
+ end
596
+ end
597
+
598
+ def standard_grant_types(array)
599
+ array.nil? ? nil : array.map do |element|
600
+ Authlete::Types::GrantType::constant_get(element)
601
+ end
602
+ end
603
+
604
+ def json_parse(json)
605
+ json.nil? ? nil : JSON.parse(json)
606
+ end
607
+
608
+ def from_application_type(constant_name)
609
+ Authlete::Types::ApplicationType::constant_get(constant_name)
610
+ end
611
+
612
+ def from_client_auth_method(constant_name)
613
+ Authlete::Types::ClientAuthMethod::constant_get(constant_name)
614
+ end
615
+
616
+ def from_delivery_mode(constant_name)
617
+ Authlete::Types::DeliveryMode::constant_get(constant_name)
618
+ end
619
+
620
+ def from_jwealg(constant_name)
621
+ Authlete::Types::JWEAlg::constant_get(constant_name)
622
+ end
623
+
624
+ def from_jweenc(constant_name)
625
+ Authlete::Types::JWEEnc::constant_get(constant_name)
626
+ end
627
+
628
+ def from_jwsalg(constant_name)
629
+ Authlete::Types::JWSAlg::constant_get(constant_name)
630
+ end
631
+
632
+ def from_subject_type(constant_name)
633
+ Authlete::Types::SubjectType::constant_get(constant_name)
634
+ end
505
635
  end
506
636
  end
507
637
  end
@@ -1,6 +1,6 @@
1
1
  # :nodoc:
2
2
  #
3
- # Copyright (C) 2014-2020 Authlete, Inc.
3
+ # Copyright (C) 2014-2022 Authlete, Inc.
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -607,6 +607,10 @@ module Authlete
607
607
  alias_method :dcr_duplicate_software_id_blocked, :dcrDuplicateSoftwareIdBlocked
608
608
  alias_method :dcr_duplicate_software_id_blocked=, :dcrDuplicateSoftwareIdBlocked=
609
609
 
610
+ attr_accessor :openidDroppedOnRefreshWithoutOfflineAccess
611
+ alias_method :openid_dropped_on_refresh_without_offline_access, :openidDroppedOnRefreshWithoutOfflineAccess
612
+ alias_method :openid_dropped_on_refresh_without_offline_access=, :openidDroppedOnRefreshWithoutOfflineAccess=
613
+
610
614
  private
611
615
 
612
616
  def defaults
@@ -761,6 +765,7 @@ module Authlete
761
765
  federationSignatureKeyId: nil,
762
766
  federationConfigurationDuration: 0,
763
767
  dcrDuplicateSoftwareIdBlocked: false,
768
+ openidDroppedOnRefreshWithoutOfflineAccess: false,
764
769
  }
765
770
  end
766
771
 
@@ -915,6 +920,7 @@ module Authlete
915
920
  @federationSignatureKeyId = hash[:federationSignatureKeyId]
916
921
  @federationConfigurationDuration = hash[:federationConfigurationDuration]
917
922
  @dcrDuplicateSoftwareIdBlocked = hash[:dcrDuplicateSoftwareIdBlocked]
923
+ @openidDroppedOnRefreshWithoutOfflineAccess = hash[:openidDroppedOnRefreshWithoutOfflineAccess]
918
924
 
919
925
  end
920
926
 
@@ -0,0 +1,27 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2022 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 Types
20
+ module ApplicationType
21
+ extend Authlete::Types::ConstantUtility
22
+
23
+ WEB = "web"
24
+ NATIVE = "native"
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,32 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2022 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 Types
20
+ module ClientAuthMethod
21
+ extend Authlete::Types::ConstantUtility
22
+
23
+ NONE = "none"
24
+ CLIENT_SECRET_BASIC = "client_secret_basic"
25
+ CLIENT_SECRET_POST = "client_secret_post"
26
+ CLIENT_SECRET_JWT = "client_secret_jwt"
27
+ PRIVATE_KEY_JWT = "private_key_jwt"
28
+ TLS_CLIENT_AUTH = "tls_client_auth"
29
+ SELF_SIGNED_TLS_CLIENT_AUTH = "self_signed_tls_client_auth"
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,34 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2022 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 Types
20
+ module ConstantUtility
21
+ def constant_get(constant_name)
22
+ if constant_name.nil?
23
+ return nil
24
+ end
25
+
26
+ begin
27
+ const_get(constant_name)
28
+ rescue
29
+ nil
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,28 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2022 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 Types
20
+ module DeliveryMode
21
+ extend Authlete::Types::ConstantUtility
22
+
23
+ POLL = "poll"
24
+ PING = "ping"
25
+ PUSH = "push"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,34 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2022 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 Types
20
+ module GrantType
21
+ extend Authlete::Types::ConstantUtility
22
+
23
+ AUTHORIZATION_CODE = "authorization_code"
24
+ IMPLICIT = "implicit"
25
+ PASSWORD = "password"
26
+ CLIENT_CREDENTIALS = "client_credentials"
27
+ REFRESH_TOKEN = "refresh_token"
28
+ CIBA = "urn:openid:params:grant-type:ciba"
29
+ DEVICE_CODE = "urn:ietf:params:oauth:grant-type:device_code"
30
+ TOKEN_EXCHANGE = "urn:ietf:params:oauth:grant-type:token-exchange"
31
+ JWT_BEARER = "urn:ietf:params:oauth:grant-type:jwt-bearer"
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,42 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2022 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 Types
20
+ module JWEAlg
21
+ extend Authlete::Types::ConstantUtility
22
+
23
+ RSA1_5 = "RSA1_5"
24
+ RSA_OAEP = "RSA-OAEP"
25
+ RSA_OAEP_256 = "RSA-OAEP-256"
26
+ A128KW = "A128KW"
27
+ A192KW = "A192KW"
28
+ A256KW = "A256KW"
29
+ DIR = "dir"
30
+ ECDH_ES = "ECDH-ES"
31
+ ECDH_ES_A128KW = "ECDH-ES+A128KW"
32
+ ECDH_ES_A192KW = "ECDH-ES+A192KW"
33
+ ECDH_ES_A256KW = "ECDH-ES+A256KW"
34
+ A128GCMKW = "A128GCMKW"
35
+ A192GCMKW = "A192GCMKW"
36
+ A256GCMKW = "A256GCMKW"
37
+ PBES2_HS256_A128KW = "PBES2-HS256+A128KW"
38
+ PBES2_HS384_A192KW = "PBES2-HS384+A192KW"
39
+ PBES2_HS512_A256KW = "PBES2-HS512+A256KW"
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,31 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2022 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 Types
20
+ module JWEEnc
21
+ extend Authlete::Types::ConstantUtility
22
+
23
+ A128CBC_HS256 = "A128CBC-HS256"
24
+ A192CBC_HS384 = "A192CBC-HS384"
25
+ A256CBC_HS512 = "A256CBC-HS512"
26
+ A128GCM = "A128GCM"
27
+ A192GCM = "A192GCM"
28
+ A256GCM = "A256GCM"
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,40 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2022 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 Types
20
+ module JWSAlg
21
+ extend Authlete::Types::ConstantUtility
22
+
23
+ NONE = "none"
24
+ HS256 = "HS256"
25
+ HS384 = "HS384"
26
+ HS512 = "HS512"
27
+ RS256 = "RS256"
28
+ RS384 = "RS384"
29
+ RS512 = "RS512"
30
+ ES256 = "ES256"
31
+ ES384 = "ES384"
32
+ ES512 = "ES512"
33
+ PS256 = "PS256"
34
+ PS384 = "PS384"
35
+ PS512 = "PS512"
36
+ ES256K = "ES256K"
37
+ EdDSA = "EdDSA"
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,33 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2022 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 Types
20
+ module ResponseType
21
+ extend Authlete::Types::ConstantUtility
22
+
23
+ NONE = "none"
24
+ CODE = "code"
25
+ TOKEN = "token"
26
+ ID_TOKEN = "id_token"
27
+ CODE_TOKEN = "code token"
28
+ CODE_ID_TOKEN = "code id_token"
29
+ ID_TOKEN_TOKEN = "id_token token"
30
+ CODE_ID_TOKEN_TOKEN = "code id_token token"
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,27 @@
1
+ # :nodoc:
2
+ #
3
+ # Copyright (C) 2022 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 Types
20
+ module SubjectType
21
+ extend Authlete::Types::ConstantUtility
22
+
23
+ PUBLIC = "public"
24
+ PAIRWISE = "pairwise"
25
+ end
26
+ end
27
+ end
@@ -1,6 +1,6 @@
1
1
  # :nodoc:
2
2
  #
3
- # Copyright (C) 2014-2020 Authlete, Inc.
3
+ # Copyright (C) 2014-2022 Authlete, Inc.
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.26.1"
19
+ VERSION = "1.28.0"
20
20
  end
data/lib/authlete.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # :nodoc:
2
2
  #
3
- # Copyright (C) 2014-2020 Authlete, Inc.
3
+ # Copyright (C) 2014-2022 Authlete, Inc.
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -111,4 +111,17 @@ module Authlete
111
111
  autoload :UserInfoResponse, 'authlete/model/response/user-info-response'
112
112
  end
113
113
  end
114
+
115
+ module Types
116
+ autoload :ApplicationType, 'authlete/types/application-type'
117
+ autoload :ClientAuthMethod, 'authlete/types/client-auth-method'
118
+ autoload :ConstantUtility, 'authlete/types/constant-utility'
119
+ autoload :DeliveryMode, 'authlete/types/delivery-mode'
120
+ autoload :GrantType, 'authlete/types/grant-type'
121
+ autoload :JWEAlg, 'authlete/types/jwealg'
122
+ autoload :JWEEnc, 'authlete/types/jweenc'
123
+ autoload :JWSAlg, 'authlete/types/jwsalg'
124
+ autoload :ResponseType, 'authlete/types/response-type'
125
+ autoload :SubjectType, 'authlete/types/subject-type'
126
+ end
114
127
  end