{"action":"created","issue":{"url":"https://api.github.com/repos/continuumsecurity/bdd-security/issues/50","repository_url":"https://api.github.com/repos/continuumsecurity/bdd-security","labels_url":"https://api.github.com/repos/continuumsecurity/bdd-security/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/continuumsecurity/bdd-security/issues/50/comments","events_url":"https://api.github.com/repos/continuumsecurity/bdd-security/issues/50/events","html_url":"https://github.com/continuumsecurity/bdd-security/issues/50","id":164652901,"number":50,"title":"Issues with getting the authorisation feature to work ","user":{"login":"streichsbaer","id":5006784,"avatar_url":"https://avatars.githubusercontent.com/u/5006784?v=3","gravatar_id":"","url":"https://api.github.com/users/streichsbaer","html_url":"https://github.com/streichsbaer","followers_url":"https://api.github.com/users/streichsbaer/followers","following_url":"https://api.github.com/users/streichsbaer/following{/other_user}","gists_url":"https://api.github.com/users/streichsbaer/gists{/gist_id}","starred_url":"https://api.github.com/users/streichsbaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/streichsbaer/subscriptions","organizations_url":"https://api.github.com/users/streichsbaer/orgs","repos_url":"https://api.github.com/users/streichsbaer/repos","events_url":"https://api.github.com/users/streichsbaer/events{/privacy}","received_events_url":"https://api.github.com/users/streichsbaer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"continuumsecurity","id":1478907,"avatar_url":"https://avatars.githubusercontent.com/u/1478907?v=3","gravatar_id":"","url":"https://api.github.com/users/continuumsecurity","html_url":"https://github.com/continuumsecurity","followers_url":"https://api.github.com/users/continuumsecurity/followers","following_url":"https://api.github.com/users/continuumsecurity/following{/other_user}","gists_url":"https://api.github.com/users/continuumsecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/continuumsecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/continuumsecurity/subscriptions","organizations_url":"https://api.github.com/users/continuumsecurity/orgs","repos_url":"https://api.github.com/users/continuumsecurity/repos","events_url":"https://api.github.com/users/continuumsecurity/events{/privacy}","received_events_url":"https://api.github.com/users/continuumsecurity/received_events","type":"User","site_admin":false},"assignees":[{"login":"continuumsecurity","id":1478907,"avatar_url":"https://avatars.githubusercontent.com/u/1478907?v=3","gravatar_id":"","url":"https://api.github.com/users/continuumsecurity","html_url":"https://github.com/continuumsecurity","followers_url":"https://api.github.com/users/continuumsecurity/followers","following_url":"https://api.github.com/users/continuumsecurity/following{/other_user}","gists_url":"https://api.github.com/users/continuumsecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/continuumsecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/continuumsecurity/subscriptions","organizations_url":"https://api.github.com/users/continuumsecurity/orgs","repos_url":"https://api.github.com/users/continuumsecurity/repos","events_url":"https://api.github.com/users/continuumsecurity/events{/privacy}","received_events_url":"https://api.github.com/users/continuumsecurity/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-07-09T06:25:52Z","updated_at":"2016-07-10T07:24:15Z","closed_at":null,"body":"Hey Stephen, \r\n\r\nas you know, I've been taking a closer look at BDD-Security recently and am loving it.\r\nAfter getting the authentication and some other features to work well, I've been playing around with the authorisation feature and have problems getting it to work.\r\n\r\nA clip from the cucumber test pretty report looks like this.\r\n<img width=\"962\" alt=\"cucumber results_export\" src=\"https://cloud.githubusercontent.com/assets/5006784/16706443/391749fe-45df-11e6-800a-f2d745a68ac7.png\">\r\n\r\nFor some reason it skips \r\n\r\n```\r\n14:22:02.159 [DEBUG] [TestEventLogger] net.continuumsecurity.junit.SecurityTest > | viewJacksInfo | jack@metacorp.com | yankeessuck | Jack Mannin |.And the login page STARTED\r\n14:22:02.163 [DEBUG] [TestEventLogger] \r\n14:22:02.163 [DEBUG] [TestEventLogger] net.continuumsecurity.junit.SecurityTest > | viewJacksInfo | jack@metacorp.com | yankeessuck | Jack Mannin |.And the login page PASSED\r\n14:22:02.168 [DEBUG] [TestEventLogger] \r\n14:22:02.168 [DEBUG] [TestEventLogger] net.continuumsecurity.junit.SecurityTest > | viewJacksInfo | jack@metacorp.com | yankeessuck | Jack Mannin |.And the username jack@metacorp.com STARTED\r\n14:22:02.169 [DEBUG] [TestEventLogger] \r\n14:22:02.169 [DEBUG] [TestEventLogger] net.continuumsecurity.junit.SecurityTest > | viewJacksInfo | jack@metacorp.com | yankeessuck | Jack Mannin |.And the username jack@metacorp.com SKIPPED\r\n14:22:02.171 [DEBUG] [TestEventLogger] \r\n14:22:02.171 [DEBUG] [TestEventLogger] net.continuumsecurity.junit.SecurityTest > | viewJacksInfo | jack@metacorp.com | yankeessuck | Jack Mannin |.And the password yankeessuck STARTED\r\n14:22:02.176 [DEBUG] [TestEventLogger] \r\n14:22:02.176 [DEBUG] [TestEventLogger] net.continuumsecurity.junit.SecurityTest > | viewJacksInfo | jack@metacorp.com | yankeessuck | Jack Mannin |.And the password yankeessuck SKIPPED\r\n14:22:02.180 [DEBUG] [TestEventLogger] \r\n14:22:02.180 [DEBUG] [TestEventLogger] net.continuumsecurity.junit.SecurityTest > | viewJacksInfo | jack@metacorp.com | yankeessuck | Jack Mannin |.When the user logs in STARTED\r\n14:22:02.181 [DEBUG] [TestEventLogger] \r\n14:22:02.181 [DEBUG] [TestEventLogger] net.continuumsecurity.junit.SecurityTest > | viewJacksInfo | jack@metacorp.com | yankeessuck | Jack Mannin |.When the user logs in SKIPPED\r\n```\r\n\r\nThe authorisation.feature file can be seen below. I'm testing BDD-Security on RailsGoat currently.\r\n[authorisation.feature.feature.txt](https://github.com/continuumsecurity/bdd-security/files/355429/authorisation.feature.feature.txt)\r\n\r\nFinally, my current RailsGoatApplication.java file is attached below:\r\n[RailsGoatApplication.java.txt](https://github.com/continuumsecurity/bdd-security/files/355435/RailsGoatApplication.java.txt)\r\n\r\nLooking at the line And the username <username> it doesn't seem to have an according WebApplicationSteps.java mapping. There is one for @Given but not for @And. I've even tried mix and matching the keywords, but without success.\r\n\r\n```\r\n@Given(\"^the username (\\\\s+)$\")\r\n    public void setUsernameFromExamples(String username) {\r\n        World.getInstance().getUserPassCredentials().setUsername(username);\r\n    }\r\n```\r\n\r\nAny idea what needs to be done to make it work?\r\n\r\nThanks,\r\nStefan\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/continuumsecurity/bdd-security/issues/comments/231575050","html_url":"https://github.com/continuumsecurity/bdd-security/issues/50#issuecomment-231575050","issue_url":"https://api.github.com/repos/continuumsecurity/bdd-security/issues/50","id":231575050,"user":{"login":"streichsbaer","id":5006784,"avatar_url":"https://avatars.githubusercontent.com/u/5006784?v=3","gravatar_id":"","url":"https://api.github.com/users/streichsbaer","html_url":"https://github.com/streichsbaer","followers_url":"https://api.github.com/users/streichsbaer/followers","following_url":"https://api.github.com/users/streichsbaer/following{/other_user}","gists_url":"https://api.github.com/users/streichsbaer/gists{/gist_id}","starred_url":"https://api.github.com/users/streichsbaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/streichsbaer/subscriptions","organizations_url":"https://api.github.com/users/streichsbaer/orgs","repos_url":"https://api.github.com/users/streichsbaer/repos","events_url":"https://api.github.com/users/streichsbaer/events{/privacy}","received_events_url":"https://api.github.com/users/streichsbaer/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T07:24:15Z","updated_at":"2016-07-10T07:24:15Z","body":"Excellent, all working now! Thank you.\r\n\r\n<img width=\"1043\" alt=\"railsgoat_overview\" src=\"https://cloud.githubusercontent.com/assets/5006784/16712205/4dc392bc-46b2-11e6-90ad-7400128cec96.png\">\r\n\r\n<img width=\"968\" alt=\"railsgoat_authorisation\" src=\"https://cloud.githubusercontent.com/assets/5006784/16712207/5747fed6-46b2-11e6-9f5d-3e46d6662622.png\">\r\n"}}
{"actor":{"display_login":"streichsbaer"}}