PhenixID web apps authentication – BankID
This authenticator is used to authenticate users with BankID (desktop or mobile BankID).
Modules Required
- auth-http
- phenix-pipes
Configuration
Configuration Properties:
Example configuration
HTTP Authenticators
{
"id" : "bid",
"alias" : "bid",
"name" : "BankID",
"configuration" : {
"pipeID" : "pipeBID",
"keyStore" : "bankidkeystore",
"mode" : "test",
"loginTemplate" : "bankid.template",
"successURL" : "/selfservice/"
}
}
Pipes
{
"id" : "pipeBID",
"valves" : [ {
"name" : "LDAPSearchValve",
"config" : {
"connection_ref" : "local_ldap",
"base_dn" : "o=IAMService",
"scope" : "SUB",
"size_limit" : "0",
"filter_template" : "(&(objectclass=*)(serialNumber={{request.userPersonalNumber}}))",
"attributes" : "uid"
}
},{
"name": "PropertyAddValve",
"config": {
"name": "roles",
"value": "auth:7313aa29-f399-4a5b-afd3-fb1d7a88ae93",
"enable_multi_value": "true"
}
}
]
}
Read this article to get the correct value for the roles property.
Keystore
{
"id" : "bankidkeystore",
"type" : "pkcs12",
"password" : "qwerty123",
"certificateAlias" : "{557681f5-fdf4-4aa2-ac94-e4591dcb02d5}",
"privateKeyPassword" : "qwerty123",
"resource" : "FPTestcert2_20150818_102329.p12"
}