{"action":"created","issue":{"url":"https://api.github.com/repos/multiOTP/multiOTPCredentialProvider/issues/15","repository_url":"https://api.github.com/repos/multiOTP/multiOTPCredentialProvider","labels_url":"https://api.github.com/repos/multiOTP/multiOTPCredentialProvider/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/multiOTP/multiOTPCredentialProvider/issues/15/comments","events_url":"https://api.github.com/repos/multiOTP/multiOTPCredentialProvider/issues/15/events","html_url":"https://github.com/multiOTP/multiOTPCredentialProvider/issues/15","id":344644342,"node_id":"MDU6SXNzdWUzNDQ2NDQzNDI=","number":15,"title":"Unable to used cached details when online but remote OTP server is not available","user":{"login":"ahuxtable","id":2359847,"node_id":"MDQ6VXNlcjIzNTk4NDc=","avatar_url":"https://avatars0.githubusercontent.com/u/2359847?v=4","gravatar_id":"","url":"https://api.github.com/users/ahuxtable","html_url":"https://github.com/ahuxtable","followers_url":"https://api.github.com/users/ahuxtable/followers","following_url":"https://api.github.com/users/ahuxtable/following{/other_user}","gists_url":"https://api.github.com/users/ahuxtable/gists{/gist_id}","starred_url":"https://api.github.com/users/ahuxtable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahuxtable/subscriptions","organizations_url":"https://api.github.com/users/ahuxtable/orgs","repos_url":"https://api.github.com/users/ahuxtable/repos","events_url":"https://api.github.com/users/ahuxtable/events{/privacy}","received_events_url":"https://api.github.com/users/ahuxtable/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-07-25T23:40:30Z","updated_at":"2018-11-07T05:10:32Z","closed_at":"2018-11-02T15:01:06Z","author_association":"NONE","body":"Hi, I am currently testing MultiOTP for local 2FA on mobile computers.\r\n\r\nI have a multiOTP server set up on our network using LDAP sync and it works fine for local interactive auth (not RDP) of our test machines.\r\n\r\nWhen the machine is completely offline, it also works fine. However, if for example I am connected to ANY network, but NOT the network that contains the multiOTP server, the CP will deny the login saying that the OTP was incorrect.\r\n\r\nThe simple solution is to disconnect from the network, log in 'offline' and then connect but this is not practical for several hundred users that work from home or connect via VPN/Hotspot.\r\n\r\nCan this behaviour be changed so that the CP will assume it is offline if it can not connect to the OTP server, rather than not connected to a network at all?  Surely this would work better in the case that perhaps the OTP server goes down too..."},"comment":{"url":"https://api.github.com/repos/multiOTP/multiOTPCredentialProvider/issues/comments/436506833","html_url":"https://github.com/multiOTP/multiOTPCredentialProvider/issues/15#issuecomment-436506833","issue_url":"https://api.github.com/repos/multiOTP/multiOTPCredentialProvider/issues/15","id":436506833,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjUwNjgzMw==","user":{"login":"ahuxtable","id":2359847,"node_id":"MDQ6VXNlcjIzNTk4NDc=","avatar_url":"https://avatars0.githubusercontent.com/u/2359847?v=4","gravatar_id":"","url":"https://api.github.com/users/ahuxtable","html_url":"https://github.com/ahuxtable","followers_url":"https://api.github.com/users/ahuxtable/followers","following_url":"https://api.github.com/users/ahuxtable/following{/other_user}","gists_url":"https://api.github.com/users/ahuxtable/gists{/gist_id}","starred_url":"https://api.github.com/users/ahuxtable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahuxtable/subscriptions","organizations_url":"https://api.github.com/users/ahuxtable/orgs","repos_url":"https://api.github.com/users/ahuxtable/repos","events_url":"https://api.github.com/users/ahuxtable/events{/privacy}","received_events_url":"https://api.github.com/users/ahuxtable/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T05:10:32Z","updated_at":"2018-11-07T05:10:32Z","author_association":"NONE","body":"So I coincidentally found a 'fix' for this.\r\n\r\nI was playing around with it today and had a bit of a lightbulb moment.  While the problem itself still exists, the simple solution is to ensure you are using a host name for the OTP server and not IP.  Since there is no DNS resolution for the OTP server when connected to a foreign network it just automatically reverts to offline mode. \r\n\r\nIt now works perfectly."}}
{"actor":{"display_login":"ahuxtable"}}