VeeamHub / vbo365-rest-self-service

Unofficial Self-Service Web Portal for Veeam Backup for Microsoft Office 365
MIT License
22 stars 8 forks source link

MFA not working #24

Closed gingerr6 closed 3 years ago

gingerr6 commented 3 years ago

Describe the bug you can enter all the ID's but pressing next doesn't progress

To Reproduce Steps to reproduce the behavior:

  1. Go to "use mfa login" if you don't enter any details then you do get an error so the next button is working

Expected behaviour progress to next setp

Screenshots NA

Desktop (please complete the following information):

Additional context most recent veeam and GitHub versions

nielsengelen commented 3 years ago

Once you hit the next button, an API call is performed towards Microsoft's API. Could you check if you are running a firewall on the server which is hosting the portal?

gingerr6 commented 3 years ago

ok, so i have a untangle firewall but it shouldn't be blocking out. i can see outbound to Microsoft

gingerr6 commented 3 years ago

can i run a CMD or PS to check?

nielsengelen commented 3 years ago

The request goes to https://login.microsoftonline.com/ so if you could check if it works without firewall or analyze the logs if something is blocked, it will help.

gingerr6 commented 3 years ago

i can access that portal directly from the server. i cant see anything being blocked in the FW?

gingerr6 commented 3 years ago

so i can see when i hit the next there is a new http request /microsoft.php HTTP URI | /microsoft.php

nielsengelen commented 3 years ago

The portal requires access to microsoftonline.com. Since you state you are running a firewall (or proxy) on it, please verify you can access microsoftonline.com from the server running the portal.

gingerr6 commented 3 years ago

Hi, i have no outbound blocking i have disabled all services in the FW and still the next button isn't working.

gingerr6 commented 3 years ago

it works for a restore, as in i click exchange pick Tennant and i get the modern auth code etc. the restore fails but thats another case.

nielsengelen commented 3 years ago

Can u open up a developer console on your browser (F12 in Chrome and Firefox), reload the index and perform the steps again (Use MFA login -> hit next). Do you see any errors or warnings?

gingerr6 commented 3 years ago

Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

https://FQND/index.php:230 jQuery 7 c fireWith l o send ajax i https://FQND/index.php:229 jQuery 2 dispatch handle index.php:230:26
nielsengelen commented 3 years ago

Any chance u can contact me via mail (niels.engelen@veeam.com) about this as I'll need to have some form of access to the login page to try this? Thanks.