A middleware needs to be added for token exchange mechanism. That way, user getting logged into parent application will get a token from token endpoint, using OAuth 2.0 connection configured in Bot Service on Azure portal. Verify the below essential steps.