lib/authlete/model/service.rb in authlete-1.0.22 vs lib/authlete/model/service.rb in authlete-1.0.23

- old
+ new

@@ -574,10 +574,22 @@ # authorization request endpoint. (Boolean) attr_accessor :parRequired alias_method :par_required, :parRequired alias_method :par_required=, :parRequired= + # Flag of whether this service always requires request objects. (Boolean) + attr_accessor :requestObjectRequired + alias_method :request_object_required, :requestObjectRequired + alias_method :request_object_required=, :requestObjectRequired= + + # Flag of whether this service processes request objects based on the + # rules defined in OpenID Connect Core 1.0 (if +true+) or JAR (JWT Secured + # Authorization Request) (if +false+). (Boolean) + attr_accessor :traditionalRequestObjectProcessingApplied + alias_method :traditional_request_object_processing_applied, :traditionalRequestObjectProcessingApplied + alias_method :traditional_request_object_processing_applied=, :traditionalRequestObjectProcessingApplied= + private # Integer attributes. INTEGER_ATTRIBUTES = ::Set.new([ :accessTokenDuration, :allowableClockSkew, :apiKey, :authorizationResponseDuration, @@ -595,11 +607,11 @@ :directJwksEndpointEnabled, :directRevocationEndpointEnabled, :directTokenEndpointEnabled, :directUserInfoEndpointEnabled, :errorDescriptionOmitted, :errorUriOmitted, :mutualTlsValidatePkiCertChain, :pkceRequired, :pkceS256Required, :refreshTokenKept, :singleAccessTokenPerSubject, :tlsClientCertificateBoundAccessTokens, :dynamicRegistrationSupported, :missingClientIdAllowed, :refreshTokenDurationKept, - :parRequired + :parRequired, :requestObjectRequired, :traditionalRequestObjectProcessingApplied ]) # String attributes. STRING_ATTRIBUTES = ::Set.new([ :accessTokenSignAlg, :accessTokenSignatureKeyId, :accessTokenType, @@ -631,102 +643,104 @@ :developerSnsCredentials, :snsCredentials ]) # Mapping from snake cases to camel cases. SNAKE_TO_CAMEL = { - :access_token_duration => :accessTokenDuration, - :access_token_sign_alg => :accessTokenSignAlg, - :access_token_signature_key_id => :accessTokenSignatureKeyId, - :access_token_type => :accessTokenType, - :allowable_clock_skew => :allowableClockSkew, - :api_key => :apiKey, - :api_secret => :apiSecret, - :authentication_callback_api_key => :authenticationCallbackApiKey, - :authentication_callback_api_secret => :authenticationCallbackApiSecret, - :authentication_callback_endpoint => :authenticationCallbackEndpoint, - :authorization_endpoint => :authorizationEndpoint, - :authorization_response_duration => :authorizationResponseDuration, - :authorization_signature_key_id => :authorizationSignatureKeyId, - :backchannel_authentication_endpoint => :backchannelAuthenticationEndpoint, - :backchannel_binding_message_required_in_fapi => :backchannelBindingMessageRequiredInFapi, - :backchannel_auth_req_id_duration => :backchannelAuthReqIdDuration, - :backchannel_polling_interval => :backchannelPollingInterval, - :backchannel_user_code_parameter_supported => :backchannelUserCodeParameterSupported, - :developer_authentication_callback_api_key => :developerAuthenticationCallbackApiKey, - :developer_authentication_callback_api_secret => :developerAuthenticationCallbackApiSecret, - :developer_authentication_callback_endpoint => :developerAuthenticationCallbackEndpoint, - :developer_sns_credentials => :developerSnsCredentials, - :device_authorization_endpoint => :deviceAuthorizationEndpoint, - :device_flow_code_duration => :deviceFlowCodeDuration, - :device_flow_polling_interval => :deviceFlowPollingInterval, - :device_verification_uri => :deviceVerificationUri, - :device_verification_uri_complete => :deviceVerificationUriComplete, - :client_id_alias_enabled => :clientIdAliasEnabled, - :clients_per_developer => :clientsPerDeveloper, - :created_at => :createdAt, - :direct_authorization_endpoint_enabled => :directAuthorizationEndpointEnabled, - :direct_introspection_endpoint_enabled => :directIntrospectionEndpointEnabled, - :direct_jwks_endpoint_enabled => :directJwksEndpointEnabled, - :direct_revocation_endpoint_enabled => :directRevocationEndpointEnabled, - :direct_token_endpoint_enabled => :directTokenEndpointEnabled, - :direct_user_info_endpoint_enabled => :directUserInfoEndpointEnabled, - :dynamic_registration_supported => :dynamicRegistrationSupported, - :error_description_omitted => :errorDescriptionOmitted, - :error_uri_omitted => :errorUriOmitted, - :id_token_duration => :idTokenDuration, - :id_token_signature_key_id => :idTokenSignatureKeyId, - :introspection_endpoint => :introspectionEndpoint, - :jwks_uri => :jwksUri, - :modified_at => :modifiedAt, - :mutual_tls_validate_pki_cert_chain => :mutualTlsValidatePkiCertChain, - :pkce_required => :pkceRequired, - :pkce_s256_required => :pkceS256Required, - :policy_uri => :policyUri, - :refresh_token_duration => :refreshTokenDuration, - :refresh_token_kept => :refreshTokenKept, - :registration_endpoint => :registrationEndpoint, - :registration_management_endpoint => :registrationManagementEndpoint, - :revocation_endpoint => :revocationEndpoint, - :request_object_endpoint => :requestObjectEndpoint, - :service_documentation => :serviceDocumentation, - :service_name => :serviceName, - :service_owner_number => :serviceOwnerNumber, - :single_access_token_per_subject => :singleAccessTokenPerSubject, - :sns_credentials => :snsCredentials, - :supported_acrs => :supportedAcrs, - :supported_backchannel_token_delivery_modes => :supportedBackchannelTokenDeliveryModes, - :supported_claim_locales => :supportedClaimLocales, - :supported_claims => :supportedClaims, - :supported_claim_types => :supportedClaimTypes, - :supported_developer_snses => :supportedDeveloperSnses, - :supported_displays => :supportedDisplays, - :supported_grant_types => :supportedGrantTypes, - :supported_response_types => :supportedResponseTypes, - :supported_scopes => :supportedScopes, - :supported_service_profiles => :supportedServiceProfiles, - :supported_snses => :supportedSnses, - :supported_token_auth_methods => :supportedTokenAuthMethods, - :supported_ui_locales => :supportedUiLocales, - :tls_client_certificate_bound_access_tokens => :tlsClientCertificateBoundAccessTokens, - :token_endpoint => :tokenEndpoint, - :tos_uri => :tosUri, - :trusted_root_certificates => :trustedRootCertificates, - :user_code_charset => :userCodeCharset, - :user_code_length => :userCodeLength, - :user_info_endpoint => :userInfoEndpoint, - :user_info_signature_key_id => :userInfoSignatureKeyId, - :mtls_endpoint_aliases => :mtlsEndpointAliases, - :pushed_auth_req_endpoint => :pushedAuthReqEndpoint, - :pushed_auth_req_duration => :pushedAuthReqDuration, - :supported_authorization_data_types => :supportedAuthorizationDataTypes, - :supported_trust_frameworks => :supportedTrustFrameworks, - :supported_evidence => :supportedEvidence, - :supported_identity_documents => :supportedIdentityDocuments, - :supported_verification_methods => :supportedVerificationMethods, - :supported_verified_claims => :supportedVerifiedClaims, - :missing_client_id_allowed => :missingClientIdAllowed, - :refresh_token_duration_kept => :refreshTokenDurationKept, - :par_required => :parRequired + :access_token_duration => :accessTokenDuration, + :access_token_sign_alg => :accessTokenSignAlg, + :access_token_signature_key_id => :accessTokenSignatureKeyId, + :access_token_type => :accessTokenType, + :allowable_clock_skew => :allowableClockSkew, + :api_key => :apiKey, + :api_secret => :apiSecret, + :authentication_callback_api_key => :authenticationCallbackApiKey, + :authentication_callback_api_secret => :authenticationCallbackApiSecret, + :authentication_callback_endpoint => :authenticationCallbackEndpoint, + :authorization_endpoint => :authorizationEndpoint, + :authorization_response_duration => :authorizationResponseDuration, + :authorization_signature_key_id => :authorizationSignatureKeyId, + :backchannel_authentication_endpoint => :backchannelAuthenticationEndpoint, + :backchannel_binding_message_required_in_fapi => :backchannelBindingMessageRequiredInFapi, + :backchannel_auth_req_id_duration => :backchannelAuthReqIdDuration, + :backchannel_polling_interval => :backchannelPollingInterval, + :backchannel_user_code_parameter_supported => :backchannelUserCodeParameterSupported, + :developer_authentication_callback_api_key => :developerAuthenticationCallbackApiKey, + :developer_authentication_callback_api_secret => :developerAuthenticationCallbackApiSecret, + :developer_authentication_callback_endpoint => :developerAuthenticationCallbackEndpoint, + :developer_sns_credentials => :developerSnsCredentials, + :device_authorization_endpoint => :deviceAuthorizationEndpoint, + :device_flow_code_duration => :deviceFlowCodeDuration, + :device_flow_polling_interval => :deviceFlowPollingInterval, + :device_verification_uri => :deviceVerificationUri, + :device_verification_uri_complete => :deviceVerificationUriComplete, + :client_id_alias_enabled => :clientIdAliasEnabled, + :clients_per_developer => :clientsPerDeveloper, + :created_at => :createdAt, + :direct_authorization_endpoint_enabled => :directAuthorizationEndpointEnabled, + :direct_introspection_endpoint_enabled => :directIntrospectionEndpointEnabled, + :direct_jwks_endpoint_enabled => :directJwksEndpointEnabled, + :direct_revocation_endpoint_enabled => :directRevocationEndpointEnabled, + :direct_token_endpoint_enabled => :directTokenEndpointEnabled, + :direct_user_info_endpoint_enabled => :directUserInfoEndpointEnabled, + :dynamic_registration_supported => :dynamicRegistrationSupported, + :error_description_omitted => :errorDescriptionOmitted, + :error_uri_omitted => :errorUriOmitted, + :id_token_duration => :idTokenDuration, + :id_token_signature_key_id => :idTokenSignatureKeyId, + :introspection_endpoint => :introspectionEndpoint, + :jwks_uri => :jwksUri, + :modified_at => :modifiedAt, + :mutual_tls_validate_pki_cert_chain => :mutualTlsValidatePkiCertChain, + :pkce_required => :pkceRequired, + :pkce_s256_required => :pkceS256Required, + :policy_uri => :policyUri, + :refresh_token_duration => :refreshTokenDuration, + :refresh_token_kept => :refreshTokenKept, + :registration_endpoint => :registrationEndpoint, + :registration_management_endpoint => :registrationManagementEndpoint, + :revocation_endpoint => :revocationEndpoint, + :request_object_endpoint => :requestObjectEndpoint, + :service_documentation => :serviceDocumentation, + :service_name => :serviceName, + :service_owner_number => :serviceOwnerNumber, + :single_access_token_per_subject => :singleAccessTokenPerSubject, + :sns_credentials => :snsCredentials, + :supported_acrs => :supportedAcrs, + :supported_backchannel_token_delivery_modes => :supportedBackchannelTokenDeliveryModes, + :supported_claim_locales => :supportedClaimLocales, + :supported_claims => :supportedClaims, + :supported_claim_types => :supportedClaimTypes, + :supported_developer_snses => :supportedDeveloperSnses, + :supported_displays => :supportedDisplays, + :supported_grant_types => :supportedGrantTypes, + :supported_response_types => :supportedResponseTypes, + :supported_scopes => :supportedScopes, + :supported_service_profiles => :supportedServiceProfiles, + :supported_snses => :supportedSnses, + :supported_token_auth_methods => :supportedTokenAuthMethods, + :supported_ui_locales => :supportedUiLocales, + :tls_client_certificate_bound_access_tokens => :tlsClientCertificateBoundAccessTokens, + :token_endpoint => :tokenEndpoint, + :tos_uri => :tosUri, + :trusted_root_certificates => :trustedRootCertificates, + :user_code_charset => :userCodeCharset, + :user_code_length => :userCodeLength, + :user_info_endpoint => :userInfoEndpoint, + :user_info_signature_key_id => :userInfoSignatureKeyId, + :mtls_endpoint_aliases => :mtlsEndpointAliases, + :pushed_auth_req_endpoint => :pushedAuthReqEndpoint, + :pushed_auth_req_duration => :pushedAuthReqDuration, + :supported_authorization_data_types => :supportedAuthorizationDataTypes, + :supported_trust_frameworks => :supportedTrustFrameworks, + :supported_evidence => :supportedEvidence, + :supported_identity_documents => :supportedIdentityDocuments, + :supported_verification_methods => :supportedVerificationMethods, + :supported_verified_claims => :supportedVerifiedClaims, + :missing_client_id_allowed => :missingClientIdAllowed, + :refresh_token_duration_kept => :refreshTokenDurationKept, + :par_required => :parRequired, + :request_object_required => :requestObjectRequired, + :traditional_request_object_processing_applied => :traditionalRequestObjectProcessingApplied } # The constructor def initialize(hash = nil) # Set default values to integer attributes. \ No newline at end of file