Microsoft 365 OAuth Configuration

Client ID, Secret, OpenID Configuration done
Configured App in M365
Scopes:
https://outlook.office365.com/.default
offline_access
Authorization & Token URL generated

But when I click on Connect to My_App_Name, it opens new tab and redirects to the same page.