Versions Compared

Key

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


Note
  • Cloud: Basic Auth. will be Removed with Business Central 2022 release wave 1 You should use AAD instead
  • On-Prem: Basic Auth will remain an option for the time being

Description

Excerpt

Let's set up Basic Authentication


Step 1 - Generate Web Service Access Key

The key will be the users "password"

  • Log into Business Central
  • Go to Users, Select a user
  • Select the Web Service Access Key field[...]
  • Input a date or select "Key Never Expires" and generate the key
  • Copy the generated key
    • Tip: Make sure the value ends with "=". If not, you have not copied the full key 



Now that we have the username and password, we can connect and authenticate.
Use the username in combination with the Web Service Access Key to log in on the mobile device.

Step 2 - Generate barcode (recommended)

The key is not easy to type.

You can create a handy barcode containing both username and the key.

This way, the user will only have to scan the barcode in order to log in.

See I want to login with barcode

Step 3 - Repeat

Repeat step 1 and 2 for all users

Step 4 - Update Mobile Configuration (start.cfg)

This is performed in direct communication with Tasklet Factory Support during the Device configuration part of the Implementation.

You do not, normally, have to perform this step.

<endpoints>    
  <endpoint id="01" displayName="D365BC" protocol="classic" type="NAV"  address="https://api.businesscentral.dynamics.com/v2.0/TenantId/WS/Company/Codeunit/MobileDocumentService"/>
</endpoints>



Overview

Page Tree
rootInstallation Guide (NOT PUBLISHED)
searchBoxtrue