NetworkAuthorizationConfig

@Serializable
data class NetworkAuthorizationConfig @JvmOverloads constructor(val isJwtEnabled: Boolean, val shouldEnableForAllUsers: Boolean = NETWORK_AUTHORIZATION_CONFIG_DEFAULT_ALL_USER_ENABLED_STATE)

Create an instance of Network Authorization Config.

Author

Abhishek Kumar

Since

12.7.00

Parameters

isJwtEnabled

true if you want all the Network Request should be validated

shouldEnableForAllUsers

true if you want to enable JWT for all users including unidentified users. If false, JWT will be enabled for identified users only. Default value is false.

Constructors

Link copied to clipboard
constructor(isJwtEnabled: Boolean, shouldEnableForAllUsers: Boolean = NETWORK_AUTHORIZATION_CONFIG_DEFAULT_ALL_USER_ENABLED_STATE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If true, data network requests for identified users would be authorized using JWT token. The default value is false.

Link copied to clipboard

If true, data network requests for all users (identified and unidentified) would be authorized using JWT token. The default value is false.