Configure the web service (web.config)
To configure the Net iD Portal Front web service, make the settings in the web.config file as described below, see appSettings element settings and system.webServer element settings.
For more information on the XML file, see web.config Schema documentation.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<compilation targetFramework="4.0" />
<sessionState mode="InProc" cookieless="true" regenerateExpiredSessionId="true" timeout="30" />
</system.web>
<appSettings>
<add key="DebugTrace" value="xxxxx"/>
<add key="SoapTrace" value="xxxxx"/>
<add key="SDKTrace" value="xxxxx"/>
<add key="PfxFile" value="xxxxx"/>
<add key="PfxPassword" value="xxxxx"/>
<add key="NiPCert" value="xxxxx"/>
<add key="ClientCertNiAS" value="xxxxx"/>
<add key="TimerInterval" value="500"/>
<add key="OnlySameDevice" value="0"/>
<add key="AnonymCheckBox" value="1"/>
<add key="CodeTimeOut" value="90000"/>
<add key="OnlyOTP" value="0"/>
<add key="TaskTypeMobile" value="122"/>
<add key="TaskTypeOTP" value="112"/>
<add key="TaskTypeCreateOTP" value="106"/>
<add key="Language" value="sv"/>
<add key="AccessServerAddress" value="xxxxx"/>
<add key="NipServerAddress" value="xxxxx"/>
<add key="NipSelfServiceAddress" value="xxxxx"/>
</appSettings>
<system.webServer>
<defaultDocument enabled="true">
<files>
<clear/>
<add value="Default.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
appSettings element settings
The settings are made using the following syntax:
<appSettings>
<add key="Key" value="Value"/>
</appSettings>
Configure the appSettings element of the web.config file by using the following settings:
key | value (example) | Description | ||
---|---|---|---|---|
DebugTrace |
C:\NiPF\OTP\PFX OTP User\Trace\ |
Path to the debug trace folder. |
||
SoapTrace |
C:\NiPF\OTP\PFX OTP User\Trace\ |
Path to the SOAP trace folder. |
||
SDKTrace |
C:\NiPF\OTP\PFX OTP User\Trace\ |
Path to the SDK trace folder. |
||
PfxFile |
C:\CertFile\xxxx.pfx |
Full path of the PFX file. |
||
PfxPassword |
xxxxxxx |
Password for the PFX file. |
||
NiPCert |
xxxxxxx |
Thumbprint, name, or serial number for the installed certificate on Local Computer/Personal Certificate Store. Enables login to Net iD Portal. |
||
ClientCertNiAS |
xxxxxxx |
Thumbprint, name, or serial number for the installed certificate on Local Computer/Personal Certificate Store. Enables TLS communication with Net iD Access Server. |
||
TimerInterval |
500 |
Time in milliseconds for how often the status will be checked. |
||
OnlySameDevice |
0 |
Set the device used to identify the user to be the same device from which the service is used. The Net iD Access app will start automatically when the user click Login or Sign. Value: 1 = True, 0 = False
|
||
AnonymCheckBox |
1 |
Set the device used to identify the user to be the same device from which the service is used. The Net iD Access app will start automatically when the user select the check box, and click Login or Sign. Value: 1 = True, 0 = False
|
||
CodeTimeOut |
90000 |
Time in milliseconds for how long to show a generated code on the screen. |
||
OnlyOTP |
0 |
’0’ for issuing of mobile tokens; ’1’ to be able to issue secondary certificates. |
||
TaskTypeMobile |
122 |
Task ID to be used for the issuing process of mobile tokens. |
||
TaskTypeOTP |
112 |
Task ID to be used for the issuing process of secondary certificates. |
||
TaskTypeCreateOTP |
106 |
Task ID to be used for OTP generation in the process of issuing secondary certificates. |
||
Language |
sv |
Language code to be used, for example ‘sv’ for Swedish, and ‘en’ for English. |
||
AccessServerAddress |
URL to Net iD Access Server. |
|||
NipServerAddress |
URL to Net iD Portal API. |
|||
NipSelfServiceAddress |
URL to Net iD Portal selfservice for automatic login for end users with Microsoft IE as web browser. |
system.webServer element settings
Configure the system.webServer element of the web.config file by using the following settings:
<system.webServer>
<defaultDocument enabled="true">
<files>
<clear/>
<add value="Default.aspx"/>
</files>
</defaultDocument>
</system.webServer>
value | Description |
---|---|
Default.aspx |
Web page used to run Net iD Portal Front as an OTP fetcher. |
AccessTest.aspx |
Web page used to run Net iD Portal Front as a test application. |