When the user hits OK, nothing happened and he is still logged in.
This issue is not related to the UAG OWA setup or the UAG authentication but rather the Exchange Virtual directories authentication. This behavior occurs because the Exchange OWA virtual directories are set to Windows Integrated Authentication.
In order to change this you will need to do the following:
- From Exchange Admin Center go to Servers - Virtual Directories (Pick your server if you have multiple servers.
- Edit the OWA (Default Web Site) Authentication.
- Uncheck "Use one or more standard authentication methods" and pick an option in the below FBA (Forms based authentication) as shown in the below image
- You will need to do the same for the ECP virtual directory (Actually it will display message with this)
- Reset/Restart the IIS and the logoff should be normal as expected.
Hopefully this can help anyone encountering this issue.