Skip to content

Multi-Environment Support for Okta SSO Login Fails Due to webAuthenticationRedirectScheme in Android Manifest #336

@cah-nidhin-ek

Description

@cah-nidhin-ek

Describe the feature request?

Our application supports multiple environments (dev, QA, stage, prod) and requires runtime selection. However, Okta SSO login via the Okta Kotlin SDK does not support dynamic environment switching due to the manifest placeholder setup:

manifestPlaceholders["webAuthenticationRedirectScheme"] = "scheme_based_on_env"

Since the value is set statically in the AndroidManifest.xml, it cannot be modified at runtime, making it impossible to switch environments dynamically for authentication.

Expected Behavior

webAuthenticationRedirectScheme should be configurable at runtime to allow flexible environment selection.

The SDK should provide an approach for overriding this placeholder dynamically.

Current Behavior

The value must be hardcoded at build time, preventing seamless environment switching.

Changing environments requires separate builds instead of a single dynamic runtime configuration.

New or Affected Resource(s)

NA

Provide a documentation link

No response

Additional Information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions