From e986a8b9daad1c764d9437982c544d732e24dfbc Mon Sep 17 00:00:00 2001 From: Brent Halsey Date: Fri, 20 Dec 2024 16:03:22 -0700 Subject: [PATCH 1/2] 1.55.0 builders --- fusionauth-netcore-client/domain/io/fusionauth/domain/APIKey.cs | 2 ++ .../domain/io/fusionauth/domain/JWTConfiguration.cs | 2 ++ .../domain/io/fusionauth/domain/RefreshTokenRevocationPolicy.cs | 2 ++ .../io/fusionauth/domain/provider/BaseSAMLv2IdentityProvider.cs | 2 ++ 4 files changed, 8 insertions(+) diff --git a/fusionauth-netcore-client/domain/io/fusionauth/domain/APIKey.cs b/fusionauth-netcore-client/domain/io/fusionauth/domain/APIKey.cs index 434e5ee3..dd41bbd8 100644 --- a/fusionauth-netcore-client/domain/io/fusionauth/domain/APIKey.cs +++ b/fusionauth-netcore-client/domain/io/fusionauth/domain/APIKey.cs @@ -28,6 +28,8 @@ namespace io.fusionauth.domain */ public class APIKey { + public DateTimeOffset? expirationInstant; + public Guid? id; public DateTimeOffset? insertInstant; diff --git a/fusionauth-netcore-client/domain/io/fusionauth/domain/JWTConfiguration.cs b/fusionauth-netcore-client/domain/io/fusionauth/domain/JWTConfiguration.cs index b0060b6c..f7817f02 100644 --- a/fusionauth-netcore-client/domain/io/fusionauth/domain/JWTConfiguration.cs +++ b/fusionauth-netcore-client/domain/io/fusionauth/domain/JWTConfiguration.cs @@ -35,6 +35,8 @@ public class JWTConfiguration: Enableable { public RefreshTokenExpirationPolicy refreshTokenExpirationPolicy; + public RefreshTokenOneTimeUseConfiguration refreshTokenOneTimeUseConfiguration; + public RefreshTokenRevocationPolicy refreshTokenRevocationPolicy; public RefreshTokenSlidingWindowConfiguration refreshTokenSlidingWindowConfiguration; diff --git a/fusionauth-netcore-client/domain/io/fusionauth/domain/RefreshTokenRevocationPolicy.cs b/fusionauth-netcore-client/domain/io/fusionauth/domain/RefreshTokenRevocationPolicy.cs index 196e901a..ae627431 100644 --- a/fusionauth-netcore-client/domain/io/fusionauth/domain/RefreshTokenRevocationPolicy.cs +++ b/fusionauth-netcore-client/domain/io/fusionauth/domain/RefreshTokenRevocationPolicy.cs @@ -30,6 +30,8 @@ public class RefreshTokenRevocationPolicy { public bool? onMultiFactorEnable; + public bool? onOneTimeTokenReuse; + public bool? onPasswordChanged; public RefreshTokenRevocationPolicy with(Action action) { diff --git a/fusionauth-netcore-client/domain/io/fusionauth/domain/provider/BaseSAMLv2IdentityProvider.cs b/fusionauth-netcore-client/domain/io/fusionauth/domain/provider/BaseSAMLv2IdentityProvider.cs index 1566f5d2..ab9b13dd 100644 --- a/fusionauth-netcore-client/domain/io/fusionauth/domain/provider/BaseSAMLv2IdentityProvider.cs +++ b/fusionauth-netcore-client/domain/io/fusionauth/domain/provider/BaseSAMLv2IdentityProvider.cs @@ -27,6 +27,8 @@ namespace io.fusionauth.domain.provider */ public class BaseSAMLv2IdentityProvider: BaseIdentityProvider { + public SAMLv2AssertionDecryptionConfiguration assertionDecryptionConfiguration; + public string emailClaim; public Guid? keyId; From 30fa1a507ad511c5897dd2e2a5574bddb2ae3f49 Mon Sep 17 00:00:00 2001 From: Brent Halsey Date: Fri, 20 Dec 2024 16:05:22 -0700 Subject: [PATCH 2/2] 1.55.0 builders --- .../RefreshTokenOneTimeUseConfiguration.cs | 39 +++++++++++++++++++ .../SAMLv2AssertionDecryptionConfiguration.cs | 39 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 fusionauth-netcore-client/domain/io/fusionauth/domain/RefreshTokenOneTimeUseConfiguration.cs create mode 100644 fusionauth-netcore-client/domain/io/fusionauth/domain/provider/SAMLv2AssertionDecryptionConfiguration.cs diff --git a/fusionauth-netcore-client/domain/io/fusionauth/domain/RefreshTokenOneTimeUseConfiguration.cs b/fusionauth-netcore-client/domain/io/fusionauth/domain/RefreshTokenOneTimeUseConfiguration.cs new file mode 100644 index 00000000..a9234267 --- /dev/null +++ b/fusionauth-netcore-client/domain/io/fusionauth/domain/RefreshTokenOneTimeUseConfiguration.cs @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2018-2023, FusionAuth, All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + */ + + +using System.Collections.Generic; +using System; + +namespace io.fusionauth.domain +{ + + /** + * Refresh token one-time use configuration. This configuration is utilized when the usage policy is + * configured for one-time use. + * + * @author Daniel DeGroff + */ + public class RefreshTokenOneTimeUseConfiguration { + + public int? gracePeriodInSeconds; + + public RefreshTokenOneTimeUseConfiguration with(Action action) { + action(this); + return this; + } + } +} diff --git a/fusionauth-netcore-client/domain/io/fusionauth/domain/provider/SAMLv2AssertionDecryptionConfiguration.cs b/fusionauth-netcore-client/domain/io/fusionauth/domain/provider/SAMLv2AssertionDecryptionConfiguration.cs new file mode 100644 index 00000000..705f45b1 --- /dev/null +++ b/fusionauth-netcore-client/domain/io/fusionauth/domain/provider/SAMLv2AssertionDecryptionConfiguration.cs @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2018-2023, FusionAuth, All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. + */ + + +using io.fusionauth.domain; +using System.Collections.Generic; +using System; + +namespace io.fusionauth.domain.provider +{ + + /** + * Configuration for encrypted assertions when acting as SAML Service Provider + * + * @author Jaret Hendrickson + */ + public class SAMLv2AssertionDecryptionConfiguration: Enableable { + + public Guid? keyTransportDecryptionKeyId; + + public SAMLv2AssertionDecryptionConfiguration with(Action action) { + action(this); + return this; + } + } +}