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

LIVE AND TEST

1
AUTH_URL = "api/v2/#/auth_smile/";
2
PARTNER_PORT = "8080";
3
SID_ADDRESS = "smileidentity";
4
SID_PORT = "8443";
Copied!

TEST

1
//Partner URL
2
PARTNER_URL = "https://portal.smileidentity.com/"
3
4
//LAMBDA URL
5
LAMBDA_URL = "https://testapi.smileidentity.com/v1/"
Copied!

PRODUCTION

1
//Partner URL
2
PARTNER_URL = "https://prod.smileidentity.com/"
3
4
//LAMBDA URL
5
LAMBDA_URL = "https://api.smileidentity.com/v1/"
Copied!

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
1
SIDNetData data = new SIDNetData();
2
....//other SIDNetData settings
3
data.setCallBackUrl(https://example.com/callback);
Copied!

SETTING ENVIRONMENTS

1
SIDNetData data = new SIDNetData();
2
data.setAuthUrl(AUTH_URL);
3
data.setPartnerUrl(PARTNER_URL);
4
data.setPartnerPort(PARTNER_PORT);
5
data.setLambdaUrl(LAMBDA_URL);
6
data.setSidAddress(SID_ADDRESS);
7
data.setSidPort(SID_PORT);
8
data.setCallBackUrl(https://example.com/callback);
9
10
SIDConfig.Builder builder = new SIDConfig.Builder(this);
11
....
12
builder.setSmileIdNetData(data)
13
....
Copied!
Last modified 4mo ago