Environments (Deprecated)

There are two environments on Smile ID. Test which is used for development and Production which should be used for live deployments

LIVE AND TEST

AUTH_URL = "api/v2/#/auth_smile/";
PARTNER_PORT = "8080";
SID_ADDRESS = "smileidentity";
SID_PORT = "8443";

TEST

//Partner URL
PARTNER_URL = "https://portal.smileidentity.com/"

//LAMBDA URL
LAMBDA_URL = "https://testapi.smileidentity.com/v1/"

PRODUCTION

//Partner URL
PARTNER_URL = "https://prod.smileidentity.com/"

//LAMBDA URL
LAMBDA_URL = "https://api.smileidentity.com/v1/"

CALLBACK URL

From version 6.4.2 there is added functionality to set custom callback using the SDK, this can be done by using the SIDNetData class. After setting the other settings in this class then call the methodsetCallBackUrl as in the example below

If the call back URL is not set from the SDK it will always default to the setting on the backend.

More information on callback URL can be found here

SIDNetData data = new SIDNetData();
....//other SIDNetData settings
data.setCallBackUrl(https://example.com/callback);

SETTING ENVIRONMENTS

SIDNetData data = new SIDNetData();
data.setAuthUrl(AUTH_URL);
data.setPartnerUrl(PARTNER_URL);
data.setPartnerPort(PARTNER_PORT);
data.setLambdaUrl(LAMBDA_URL);
data.setSidAddress(SID_ADDRESS);
data.setSidPort(SID_PORT);
data.setCallBackUrl(https://example.com/callback);

SIDConfig.Builder builder = new SIDConfig.Builder(this);
....
builder.setSmileIdNetData(data)
....

Last updated