Skip to content

Commit

Permalink
Remove unused properties from AuthenticateOption
Browse files Browse the repository at this point in the history
  • Loading branch information
mickmak-busicat committed Sep 5, 2024
1 parent 3ca7031 commit 02983cb
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions sdk/src/main/java/com/oursky/authgear/AuthenticateOptions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,10 @@ data class AuthenticateOptions @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
*/
var xState: String? = null,
/**
* OIDC response type parameter.
*/
var responseType: String? = "code",
/**
* OIDC prompt parameter.
*
Expand All @@ -34,10 +26,6 @@ data class AuthenticateOptions @JvmOverloads constructor(
* e.g. Azure Active Directory.
*/
var prompt: List<PromptOption>? = null,
/**
* OIDC login hint parameter
*/
var loginHint: String? = null,
/**
* UI locale tags
*/
Expand Down Expand Up @@ -84,10 +72,10 @@ internal fun AuthenticateOptions.toRequest(
responseType = "code",
scope = AuthenticateOptions.getScopes(preAuthenticatedURLEnabled),
isSsoEnabled = isSsoEnabled,
state = this.state,
state = null,
xState = this.xState,
prompt = this.prompt,
loginHint = this.loginHint,
loginHint = null,
idTokenHint = null,
maxAge = null,
uiLocales = this.uiLocales,
Expand Down

0 comments on commit 02983cb

Please sign in to comment.