Exporting Web Module
Export Requirements
To export the Web Module manifest.json
file must contain all the required properties.
Example of manifest.json
with all the obligatory fields:
{
"redAppId": "sabre-id-redapp-sample",
"bundleSymbolicName": "com.sabre.sample",
"bundleName": "Sabre Sample",
"name": "com-sabre-sample-web-module",
"contactDetails": {
"company": "Sabre Inc.",
"contactName": "SRW Developers",
"email": "redappssupport@sabre.com",
"phoneNumber": "123-456-789",
"website": "http://www.sabre.com"
}
}
manifest.json
can also contain authorization information, example:
{
"redAppId": "sabre-id-redapp-sample",
"bundleSymbolicName": "com.sabre.sample",
"bundleName": "Sabre Sample",
"name": "com-sabre-sample-web-module",
"contactDetails": {
"company": "Sabre Inc.",
"contactName": "SRW Developers",
"email": "redappssupport@sabre.com",
"phoneNumber": "123-456-789",
"website": "http://www.sabre.com"
},
"authorizations": [
{
"name": "com.sabre.edge.cf.host.Communication",
"threshold": 10,
"metric": "tpm"
},
{
"name": "com.sabre.edge.cf.rest2sg.Rest2Sg",
"actions": [
{
"name": "/v1/lists/utilities/aircraft/equipment",
"threshold": 1,
"metric": "tps"
}
]
}
]
}
Creating validation-ready jar
Web Red App can be packaged into a validation-ready, signed jar using Concierge.
To do so use the ngv export
command, which supports the following arguments:
-
keystore
-
keypass
-
alias
-
storepass
-
storetype
-
providerClass
-
providerArg
Successfully ended export will create in the build/
directory SVS-ready {module_name}_{version}.{timestamp}.zip
file with Web Module packed into jar, signed using the data provided as command execution parameters
along with the bundle.properties
file and the certificate exported from the provided keystore.
java
command have to be available and added to the PATH variable.
Exporting with a keystore stored in file
ngv export --keystore=$keystore --keypass=$keypass --alias=$alias --storepass=$storepass
Example of ngv export:
ngv export --keystore=/c/Developer/Workspace/myKeystore --storepass=abc34 --keypass=abc34 --alias=myFirstKey
Exporting with a certificate installed on a hardware token
ngv export --keystore=$keystore --alias=$alias --storepass=$storepass --storetype=$storetype --providerClass=$providerClass --providerArg=$providerArg
Example of ngv export:
ngv export --keystore=NONE --storepass=abc34 --alias=myFirstKey --storetype=PKCS11 --providerClass=sun.security.pkcs11.SunPKCS11 --providerArg=C:\path\to\eToken.cfg
Keystore location (has to be set to NONE
)
Example of eToken.cfg file:
name=eToken
library=c:\WINDOWS\system32\eTPKCS11.dll
Please note that the content of said file may differ depending on your token provider. If you are unsure how to configure said file please see your token provider’s documentation or contact their support.