withAuthentication()
Home > @gooddata/sdk-backend-spi > IAnalyticalBackend > withAuthentication
IAnalyticalBackend.withAuthentication() method
Sets authentication provider to be used when backend discovers current session is not authenticated.
Signature:
withAuthentication(provider: IAuthenticationProvider): IAnalyticalBackend;
Parameters
Parameter | Type | Description |
---|---|---|
provider | IAuthenticationProvider | authentication provider to use |
Returns:
a new instance of backend, set up with the provider