{"action":"created","issue":{"url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/42","repository_url":"https://api.github.com/repos/AceMetrix/connect-cas","labels_url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/42/comments","events_url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/42/events","html_url":"https://github.com/AceMetrix/connect-cas/issues/42","id":157699158,"number":42,"title":"Overriding configuration","user":{"login":"iliuta","id":4728960,"avatar_url":"https://avatars.githubusercontent.com/u/4728960?v=3","gravatar_id":"","url":"https://api.github.com/users/iliuta","html_url":"https://github.com/iliuta","followers_url":"https://api.github.com/users/iliuta/followers","following_url":"https://api.github.com/users/iliuta/following{/other_user}","gists_url":"https://api.github.com/users/iliuta/gists{/gist_id}","starred_url":"https://api.github.com/users/iliuta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iliuta/subscriptions","organizations_url":"https://api.github.com/users/iliuta/orgs","repos_url":"https://api.github.com/users/iliuta/repos","events_url":"https://api.github.com/users/iliuta/events{/privacy}","received_events_url":"https://api.github.com/users/iliuta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-31T15:22:34Z","updated_at":"2016-06-03T22:21:12Z","closed_at":"2016-06-03T22:21:01Z","body":"Hi, \r\n\r\nI'm struggling with the serviceValidate.\r\nIn my configuration, I have a public URL for the login page (https://public_host/cas/login) and a private one (http://private_host/cas/serviceValidate) for validating tickets.\r\n\r\nIn the documentation I could read that it's possible to override all properties.\r\n\r\nSo, I write the following:\r\n\r\napp.use('/', cas.serviceValidate({'host':'private_host', 'protocol':'http'}), cas.authenticate(), myRoute);\r\n\r\nHowever, https://public_host/cas/serviceValidate is still called when validating tickets.\r\n\r\nWhen I look to the code of service-validate.js I see the following line:\r\n\r\nvar options = _.extend({}, overrides, configuration);\r\n\r\nIf I change it like this (by switching overrides and configuration):\r\nvar options = _.extend({}, configuration, overrides);\r\n\r\nit works!\r\n\r\nThe same is in authenticate.js and others. \r\nIs that a bug or it is supposed to work like this?\r\n\r\nIf it's a bug, I'll be happy to make a pull request. \r\n\r\nIf not, how can I override the configuration properly in order to call my private internal serviceValidate url?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/comments/223708597","html_url":"https://github.com/AceMetrix/connect-cas/issues/42#issuecomment-223708597","issue_url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/42","id":223708597,"user":{"login":"badunk","id":263556,"avatar_url":"https://avatars.githubusercontent.com/u/263556?v=3","gravatar_id":"","url":"https://api.github.com/users/badunk","html_url":"https://github.com/badunk","followers_url":"https://api.github.com/users/badunk/followers","following_url":"https://api.github.com/users/badunk/following{/other_user}","gists_url":"https://api.github.com/users/badunk/gists{/gist_id}","starred_url":"https://api.github.com/users/badunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badunk/subscriptions","organizations_url":"https://api.github.com/users/badunk/orgs","repos_url":"https://api.github.com/users/badunk/repos","events_url":"https://api.github.com/users/badunk/events{/privacy}","received_events_url":"https://api.github.com/users/badunk/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T22:21:12Z","updated_at":"2016-06-03T22:21:12Z","body":"thanks"}}
{"actor":{"display_login":"badunk"}}