{"action":"created","issue":{"url":"https://api.github.com/repos/neverpanic/simpleid-yubikey/issues/1","labels_url":"https://api.github.com/repos/neverpanic/simpleid-yubikey/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/neverpanic/simpleid-yubikey/issues/1/comments","events_url":"https://api.github.com/repos/neverpanic/simpleid-yubikey/issues/1/events","html_url":"https://github.com/neverpanic/simpleid-yubikey/issues/1","id":109209773,"number":1,"title":"identity file is not recognized","user":{"login":"tristan-k","id":732025,"avatar_url":"https://avatars.githubusercontent.com/u/732025?v=3","gravatar_id":"","url":"https://api.github.com/users/tristan-k","html_url":"https://github.com/tristan-k","followers_url":"https://api.github.com/users/tristan-k/followers","following_url":"https://api.github.com/users/tristan-k/following{/other_user}","gists_url":"https://api.github.com/users/tristan-k/gists{/gist_id}","starred_url":"https://api.github.com/users/tristan-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristan-k/subscriptions","organizations_url":"https://api.github.com/users/tristan-k/orgs","repos_url":"https://api.github.com/users/tristan-k/repos","events_url":"https://api.github.com/users/tristan-k/events{/privacy}","received_events_url":"https://api.github.com/users/tristan-k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-01T01:03:41Z","updated_at":"2015-10-01T19:11:43Z","closed_at":null,"body":"I followed the instruction properly but I'm unable to login because: \r\n\r\n`01.10.2015 01:57:03 83q3r9e45m2i9sq0mt0t0d0q41 [WARN] auth_method method for  is YUBIKEY, but the yubikey section is missing from the identity file.`\r\n\r\nEven though the files is there and the yubikey section exists."},"comment":{"url":"https://api.github.com/repos/neverpanic/simpleid-yubikey/issues/comments/144819965","html_url":"https://github.com/neverpanic/simpleid-yubikey/issues/1#issuecomment-144819965","issue_url":"https://api.github.com/repos/neverpanic/simpleid-yubikey/issues/1","id":144819965,"user":{"login":"neverpanic","id":357348,"avatar_url":"https://avatars.githubusercontent.com/u/357348?v=3","gravatar_id":"","url":"https://api.github.com/users/neverpanic","html_url":"https://github.com/neverpanic","followers_url":"https://api.github.com/users/neverpanic/followers","following_url":"https://api.github.com/users/neverpanic/following{/other_user}","gists_url":"https://api.github.com/users/neverpanic/gists{/gist_id}","starred_url":"https://api.github.com/users/neverpanic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neverpanic/subscriptions","organizations_url":"https://api.github.com/users/neverpanic/orgs","repos_url":"https://api.github.com/users/neverpanic/repos","events_url":"https://api.github.com/users/neverpanic/events{/privacy}","received_events_url":"https://api.github.com/users/neverpanic/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T19:11:43Z","updated_at":"2015-10-01T19:11:43Z","body":"Reading further into the code, `user_load()` must have been called with an empty string, because it copies its argument into `$user['uid']`:\r\n\r\n```php\r\nfunction user_load($uid) {\r\n    if (store_user_exists($uid)) {\r\n        $user = store_user_load($uid);\r\n        $user[\"uid\"] = $uid;\r\n        \r\n        // ...\r\n        \r\n        return $user;\r\n    } else {\r\n        return NULL;\r\n    }\r\n}\r\n```\r\n\r\n and `store_user_exists($uid)` must have succeeded. `store_user_exists()` accepts empty UIDs (that sounds like a bug in simpleid) and will return true if your identity file's name is `.identity`.\r\n\r\nOr maybe it's just a caching issue? I've added some code that should help in debugging and is generally a good idea as sanity check."}}