diff --git a/sdk/src/main/java/com/oursky/authgear/AuthgearCore.kt b/sdk/src/main/java/com/oursky/authgear/AuthgearCore.kt index 81bc02f..e709479 100644 --- a/sdk/src/main/java/com/oursky/authgear/AuthgearCore.kt +++ b/sdk/src/main/java/com/oursky/authgear/AuthgearCore.kt @@ -561,7 +561,7 @@ internal class AuthgearCore( isSsoEnabled = this.isSsoEnabled, prompt = listOf(PromptOption.LOGIN), loginHint = loginHint, - state = options.state, + state = null, xState = options.xState, uiLocales = options.uiLocales, colorScheme = options.colorScheme, diff --git a/sdk/src/main/java/com/oursky/authgear/PromoteOptions.kt b/sdk/src/main/java/com/oursky/authgear/PromoteOptions.kt index 0c67bea..6a0cd14 100644 --- a/sdk/src/main/java/com/oursky/authgear/PromoteOptions.kt +++ b/sdk/src/main/java/com/oursky/authgear/PromoteOptions.kt @@ -5,10 +5,6 @@ data class PromoteOptions @JvmOverloads constructor( * Redirection URI to which the response will be sent after authorization. */ var redirectUri: String, - /** - * OAuth 2.0 state value. - */ - var state: String? = null, /** * Use this parameter to provide parameters from the client application to Custom UI. The string in xState can be accessed by the Custom UI. Ignore this parameter if default AuthUI is used */ diff --git a/sdk/src/main/java/com/oursky/authgear/ReauthenticateOptions.kt b/sdk/src/main/java/com/oursky/authgear/ReauthenticateOptions.kt index cc43751..01c68a6 100644 --- a/sdk/src/main/java/com/oursky/authgear/ReauthenticateOptions.kt +++ b/sdk/src/main/java/com/oursky/authgear/ReauthenticateOptions.kt @@ -10,10 +10,6 @@ data class ReauthenticateOptions @JvmOverloads constructor( * Redirection URI to which the response will be sent after authorization. */ var redirectUri: String, - /** - * OAuth 2.0 state value. - */ - var state: String? = null, /** * Use this parameter to provide parameters from the client application to Custom UI. The string in xState can be accessed by the Custom UI. Ignore this parameter if default AuthUI is used */ @@ -54,7 +50,7 @@ internal fun ReauthenticateOptions.toRequest(idTokenHint: String, isSsoEnabled: // because no new session should be generated so the scopes are not important. scope = listOf("openid", "https://authgear.com/scopes/full-access"), isSsoEnabled = isSsoEnabled, - state = this.state, + state = null, xState = this.xState, prompt = null, loginHint = null,