# Data Adapter

Data Adapter integrates Web Flow with other backends required for the authentication process.

You can obtain the war file which can be deployed to a Java EE container in [releases](https://github.com/wultra/powerauth-webflow/releases).

The Data Adapter needs to be customized for each deployment. You can find the documentation for customizing Data Adapter in the [Web Flow Customization project](https://github.com/wultra/powerauth-webflow-customization/blob/develop/docs/Implementing-the-Data-Adapter-Interface.md).

## Data Adapter functionality

Following functionality needs to be customized during Web Flow deployment by implementing the Data Adapter interface (if applicable):

- perform user authentication with remote backend based on provided credentials
- retrieve user details for given user ID
- decorate form data for given user (e.g. add user bank account list)
- form data change notification
- operation status change notification
- generate OTP code for SMS based authorization
- generate authorization SMS text
- send authorization SMS 
- create OAuth 2.0 consent form
- validate OAuth 2.0 consent form options
- save OAuth 2.0 consent form options

# Data Adapter

Data Adapter integrates Web Flow with other backends required for the authentication process.

You can obtain the war file which can be deployed to a Java EE container in [releases](https://github.com/wultra/powerauth-webflow/releases).

The Data Adapter needs to be customized for each deployment. You can find the documentation for customizing Data Adapter in the [Web Flow Customization project](https://github.com/wultra/powerauth-webflow-customization/blob/develop/docs/Implementing-the-Data-Adapter-Interface.md).

## Data Adapter functionality

Following functionality needs to be customized during Web Flow deployment by implementing the Data Adapter interface (if applicable):

- convert username to user ID in case such conversion is required
- perform user authentication with remote backend based on provided credentials
- retrieve user details for given user ID
- decorate form data for given user (e.g. add user bank account list)
- form data change notification
- operation status change notification
- generate OTP code for SMS based authorization
- generate authorization SMS text
- send authorization SMS 
- create OAuth 2.0 consent form
- validate OAuth 2.0 consent form options
- save OAuth 2.0 consent form options

Update Data Adapter interface documentation
Update Data Adapter interface documentation
