2017/05/26 - I could reproduce your problem by setting common and microsoft account login : https://login.microsoftonline.com/common/oauth2/authorize?client_id=xxxxxx&response_type=code&redirect_uri=http%3A%2F%2Flocalhost% .