From 41c0d0f34cb2fd83dc20a49f6a8b9c92c802cc5a Mon Sep 17 00:00:00 2001 From: Quentin Vernot Date: Wed, 12 Jun 2024 12:59:30 +0200 Subject: [PATCH] chore(core): deprecate old OIDC flow --- tanker-bindings/src/main/kotlin/io/tanker/api/Tanker.kt | 2 ++ tanker-bindings/src/main/kotlin/io/tanker/api/Verification.kt | 1 + 2 files changed, 3 insertions(+) diff --git a/tanker-bindings/src/main/kotlin/io/tanker/api/Tanker.kt b/tanker-bindings/src/main/kotlin/io/tanker/api/Tanker.kt index eb9e809..0d20ac4 100644 --- a/tanker-bindings/src/main/kotlin/io/tanker/api/Tanker.kt +++ b/tanker-bindings/src/main/kotlin/io/tanker/api/Tanker.kt @@ -167,6 +167,7 @@ class Tanker(tankerOptions: TankerOptions) { /** * Create an Oidc nonce */ + @Deprecated("The entire OIDC flow has been reworked in version 4.2.0, method 'createOidcNonce' has been deprecated as a result") fun createOidcNonce(): TankerFuture { val fut = TankerFuture(lib.tanker_create_oidc_nonce(tanker), Pointer::class.java, keepAlive = this) return fut.then(TankerCallback { @@ -180,6 +181,7 @@ class Tanker(tankerOptions: TankerOptions) { /** * Set the Oidc nonce to use during the next verification */ + @Deprecated("The entire OIDC flow has been reworked in version 4.2.0, method 'setOidcTestNonce' has been deprecated as a result") fun setOidcTestNonce(nonce: String): TankerFuture { return TankerFuture(lib.tanker_set_oidc_test_nonce(tanker, nonce), Pointer::class.java, keepAlive = this) } diff --git a/tanker-bindings/src/main/kotlin/io/tanker/api/Verification.kt b/tanker-bindings/src/main/kotlin/io/tanker/api/Verification.kt index 13b1569..c634de2 100644 --- a/tanker-bindings/src/main/kotlin/io/tanker/api/Verification.kt +++ b/tanker-bindings/src/main/kotlin/io/tanker/api/Verification.kt @@ -4,6 +4,7 @@ sealed class Verification data class EmailVerification(val email: String, val verificationCode: String) : Verification() data class PassphraseVerification(val passphrase: String) : Verification() data class VerificationKeyVerification(val verificationKey: String) : Verification() +@Deprecated("The entire OIDC flow has been reworked in version 4.2.0, 'OIDCIDTokenVerification' has been deprecated as a result, use 'OIDCAuthorizationCodeVerification' instead") data class OIDCIDTokenVerification(val oidcIDToken: String) : Verification() data class PhoneNumberVerification(val phoneNumber: String, val verificationCode: String) : Verification() data class PreverifiedEmailVerification(val preverifiedEmail: String) : Verification()