We have existing mobile apps where we are using APIs to access the data. App also have login functionality to authenticate the user through 'Username' and 'Password'. Currently we are in progress to create portal using Microsoft portals. We also want to integrate Dynamics 365 database through APIs for mobile app. To authenticate the user or contact through app we want to use same credentials which they are using in portal. Please suggest how can we achieve this.