Older versionVersion 2.4Authenticators - HTTPPhenixID web apps authentication – BankID

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 Properties:

Name Description Default value Mandatory
loginTemplate Template to use for user interface. bankid.template No
successURL The URL to redirect the browser to after successful authentication Yes
includeQueryString Enable to append query string (passed to authenticator) to successURL. false No
pipeID Id of pipe used to validate username and password. Yes
errorURL The URL to redirect the browser to if an error occurs. No
keyStore Keystore to use to communicate with BankID backend servers. Must point to an existing KEYSTORE in the configuration. Yes
mode Controls which bankid backend environment to use. Leave blank ("") for production, specify "test" for test environment. No

Example configuration

HTTP Authenticators

  "id" : "bid",
  "alias" : "bid",
  "name" : "BankID",
  "configuration" : {
    "pipeID" : "pipeBID",
    "keyStore" : "bankidkeystore",
    "mode" : "test",
    "loginTemplate" : "bankid.template",
    "successURL" : "/selfservice/"


  "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.


    "id" : "bankidkeystore",
    "type" : "pkcs12",
    "password" : "qwerty123",
    "certificateAlias" : "{557681f5-fdf4-4aa2-ac94-e4591dcb02d5}",
    "privateKeyPassword" : "qwerty123",
    "resource" : "FPTestcert2_20150818_102329.p12"