Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 



Column
width62%
Image Removed

To connect the user with the Buypass Systems, the user’s mobile phone number must be registered in LDAP or another user catalog that is available through HTTP. To make the connection stronger it is also possible to register the App-ID. Note that the use of App-ID is configured for each LDAP / HTTP configuration.

It is the customer sites own responsibility enabling BP Code for their users in their authentication solutions.

Prioritization

Queries in the LDAP / HTTP directories are performed in the order they are shown in the list. By using the up- and down buttons the order can be changed. Queries are first done in the cached user catalogue. If the user is not found in the cache, the queries are performed in the defined order. If changes are done to the preferred query order, the cache must be cleared.

Clear the cache 
Anchor
empty-cache
empty-cache

The button “Clear cache” will empty the cache for all users. It is also possible to clear the cache for individual users in the Users menu.

LDAP

The information here is used to create an LDAP connection, and to know which attributes are used to create the link between the user and Buypass Code. To edit the LDAP configuration press the “Edit” button under the detailed view of the LDAP connection. To edit a LDAP path press the chosen path to be edited.

The fields in the LDAP catalogue that are used for storing the mobile phone number, App-ID and username is decided by the customer. These fields must be configured in the Buypass Code Manager, so that the Service Connector can look up the user when authentication is performed.

Configuration

Image Removed


URL: URL that is used to find the LDAP server. This must be a valid URI, in the form of ldap://machine.domain.no[port]. The port number is only required if it is different from the standard port.

E.g.: ldap://ldap.domene.no:10001

Username: Username of the service account that in combination with a password are used to authenticate against the AD/LDAP server for querying the user information. The user account should from a security perspective be a read-only user.

E.g.: BPCodereadonlyuser

Password: The password, in combination with the username, is used to authenticate against the AD/LDAP server.

E.g.: verysecretpassword117788

Phone.no. attribute: Defines which attribute in the LDAP catalogue is used to store the telephone number used by Buypass Code. In combination with the App-ID attribute this is used to decide who is allowed to log on with Buypass Code. The default setting for this is the attribute «telephoneNumber»"telephoneNumber". For searching in additional attributes these are separated with «";» " and will be prioritized in the order they are defined. This means that if the configuration is the following: ”telephoneNumber;pager”, the number in the telephoneNumber attribute be used. If telephoneNumber is empty, the number found in pager will be used. If the number that is found is missing Country Code, the standard Country Code for the Customer Site will be used

E.g.: telephoneNumber;pager

App-ID attribute: Defines which attribute in AD/LDAP catalogue that is used to store App-ID for use in Buypass Code. In combination with telephoneNumber attribute this is used to find which users are allowed logging on with Buypass Code. By defining the App-ID attribute the requirement for having stored the correct App-ID in AD/LDAP is activatet. This means that if a user does not have the App-ID stored in the LDAP catalogue the user is not allowed to log on.  

E.g.: driverLicenseNo

LDAP path configuration

Image Removed

The information here defines how to find the users in a given LDAP catalogue.

Priority: The paths will be used in the order they have in the list.

LDAP path: The path is used to find valid users in the AD/LDAP that Buypass Code will use to match mobile phone number and/or AppID against.

The paths must be in the form of: basedn[path-to OU-containing-the-user],filter[attributes-to-validate-users-against]. If the string within the basedn brackets ends with a «" * »", recursive searching will be performed. The Filter-string must contain «#USER» "#USER" which is used to match the username against the defined attribute in AD/LDAP.

Example 1:

basedn[OU=Users,DC=domain,DC=net],filter[samAccountName=#USER#]

Defines that Buypass Code shall search for valid users in the OU «Users» in the Active Directory domain «domain«domain.net»net», and then match the username against the attribute “samAccountName”

Example 2:

basedn[OU=Users,DC=domain,DC=net(*)],filter[samAccountName=#USER#]

Defines that Buypass Code shall search for valid users recursive in the OU Users inclusive all sub-OUs, in the domain “domain“domain.net”net”, and then match the username against the attribute “samAccountName”.

Example 3:

basedn[CN=company],filter[userName=#USER#,vpnAllowed=true]

Defines that Buypass Code shall look for valid users in the basedn «company», and then match the username against the attribute “userName”, but only if the attribute “vpnAllowed” has the value “true”.

Example 4:

basedn[OU=OU_name,DC=example,DC=com(*)],filter[(&(samAccountName=#USER#)(memberof=CN=group_name,CN=Users,DC=example,DC=com))]  
Query with «memberof» "memberof" for allowing group managed access in Active Directory.

Sikker kommunikasjon med

Secure communication with LDAP

Service Connector kan slå opp brukerinformasjon fra brukerkatalogen med kryptert LDAP. Man må da lage en ny LDAP konfigurasjon i Code Manager. En kryptert LDAP-forbindelse settes opp ved å sette URL parameteren til å bruke ldaps protokollen. (For eksempel ldapsThe Service Connector can perform queries in the user catalogue with encrypted LDAP. This is done by creating a new LDAP configuration in Code Manager. An encrypted LDAP-connection is created by configuring the URL parameter to use the LDAPS protocol. (e.g. ldaps://myldap.hostname). Hvis man velger å ikke skrive inn et portnummmer vil ldaps protokollen bruke port 636. Dersom sertifikatet på LDAP serveren ikke er fra en If no port number is chosen the default port 636 is used. If the certificate on the LDAP server is not from a CA (Certificate Authority) godkjent av Java må dette sertikatet importeres i Javas sertifikatlager.Nedenfor er et eksempel på hvordan man importer et sertikat med navn approved by Java the certificate must be imported into the Java certificate storage.

Below is an example on how to import a certificate named ldaps-cert.cerÅpne et kommandoprompt som administrator på datamaskinen som kjører .

Open a command prompt as administrator on the computer running the Service Connector.

Endre gjeldende katalog som følgerChange current working directory:


Code Block
cd \bps\jre\lib\security


Importér sertifikatet med følgende kommandoImport the certificate with the following command:


Code Block
\bps\jre\bin\keytool -importcert -trustcacerts -alias root -keystore cacerts -file ldaps-cert.cer
Enter keystore password: changeit
Trust this certificate? [no]: yes


HTTP

HTTP-oppslag requests for Buypass Code gjør det mulig for et brukersted å slå opp brukere over HTTP istedet for i LDAP-katalog. Notér at HTTP-oppslag krever Service Connector version 8.0.3.0 eller nyere.makes it possible for the customer sites to query users over HTTP instead of LDAP catalogue.

INCLIB:_blue_box_style
Panel
borderColor#d7e0ea
bgColor#d7e0ea
titleColor#ffffff
borderWidth1
titleBGColor#d7e0ea
borderStylesolid
Include Page
INCLIB:_blue_box_style


Div
classblue-box-header

HTTP request og and response


Div
classblue-box-bread

Request

Buypass sender en GET request til den angitte URLen med en sends a GET request to the defined URL with the parameter "user" som er brukernavnet til brukeren.For eksempelwhich is the username of the user.

E.g.: https://www.yoursite.no/lookup?user=myusername

Response

Mulige Possible response scenarierscenarios:

HTTP status codeHTTP response bodyForklaring
200phone=XXXXXX&appid=YYYYYYYYYYYDersom brukeren finnesIf the user exists. "phone" og and "appid" är exempel og disse specifieres pr konfigurasjonare examples and are specified for each configuration.
404 Dersom brukeren ikke er funnet
400 Dersom det er feil i input parametere
500 Vid intern feil

Konfigurasjon

URL: URL som brukes til å finne HTTP serveren. Må være gyldig URI, dvs. på formen 

If the user is not found.
400
If the input parameters are invalid.
500
If there is an internal error.



Configuration

URL: The URL used to find the HTTP server. Must be a valid URI, e.g. https://domene.no.

For eksempel: httpsE.g.  https://www.yoursite.no/lookup

Brukernavn: Brukernavnet i kombinasjon med passord brukes til å autentisere seg mot HTTP server hvis basic access authentication benyttes.

For eksempel: BPCodereadonlyuser

Passord: Passordet i kombinasjon med brukernavn brukes til å autentisere seg mot HTTP server hvis basic access authentication benyttes.

For eksempel: verysecretpassword117788

Tel.nr. attributt: Angir hvilken response parameter som brukes til å returnere telefonnummer for bruk i Buypass Code. Hvis telefonnummeret som blir funnet savner landkode, vil standard landkode for brukerstedet brukes.

For eksempel: telefonNummer

App-ID attributt: Angir hvilken response parameter som brukes til å returnere App-ID’er for bruk i Buypass Code. I kombinasjon med Tel.nr. attributt brukes dette til å finne ut hvilke brukere som har tilgang til å logge seg på. Gjennom å angi App-ID attributt aktiveres kravet om at App-ID skal finnes for denne LDAP katalogen. Det betyr at hvis responsen for en bruker ikke inneholder App-ID får denne ikke logge på.  

For eksempel: appId

 

 

Username: The username in combination with the password is used to authenticate against the HTTP server if basic autentication is used.

E.g.: BPCodereadonlyuser

Password: The password in combination with the username is used to authenticate against the HTTP server if basic autentication is used.

E.g.: verysecretpassword117788

Phone.no. attribute: Defines the response parameter used for returning the telephone number used by Buypass Code. If the number found is missing the country code, the standard country code for the merchant site is used.

E.g.: telephoneNumber

App-ID attribute: Defines which response parameter is used for returning the App-ID used by Buypass Code. In combination with Phone.no this is used to find which users have permission to log on. By definng the App-ID attribute the requirement for the App-ID is activated. This means that if the response for a user does not contain the App-ID the user is not allowed to log on.

E.g.: appId




Column
width2%


Column
width26%


Div
classright-navigation

Innhold  

Page Tree
root@parent
startDepth2
Include Page
INCLIB:_right_navigation_styleINCLIB:_right_navigation_style




Column
width10%


Section


 

Column
width62%

Include Page
INCLIB:_bottom_barINCLIB:_bottom_bar


Column
width2%


Column
width26%
 


Column
width10%
Include PageINCLIB:_navigation_buttons_styleINCLIB:_navigation_buttons_style Include PageINCLIB:doc_center_styleINCLIB:doc_center_style  Include PageINCLIB:_template_styleINCLIB:_template_style