{"action":"created","issue":{"url":"https://api.github.com/repos/slampenny/Swaggervel/issues/46","repository_url":"https://api.github.com/repos/slampenny/Swaggervel","labels_url":"https://api.github.com/repos/slampenny/Swaggervel/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/slampenny/Swaggervel/issues/46/comments","events_url":"https://api.github.com/repos/slampenny/Swaggervel/issues/46/events","html_url":"https://github.com/slampenny/Swaggervel/issues/46","id":103259795,"number":46,"title":"TypeError: auth.apply is not a function","user":{"login":"lo3ty","id":10106959,"avatar_url":"https://avatars.githubusercontent.com/u/10106959?v=3","gravatar_id":"","url":"https://api.github.com/users/lo3ty","html_url":"https://github.com/lo3ty","followers_url":"https://api.github.com/users/lo3ty/followers","following_url":"https://api.github.com/users/lo3ty/following{/other_user}","gists_url":"https://api.github.com/users/lo3ty/gists{/gist_id}","starred_url":"https://api.github.com/users/lo3ty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lo3ty/subscriptions","organizations_url":"https://api.github.com/users/lo3ty/orgs","repos_url":"https://api.github.com/users/lo3ty/repos","events_url":"https://api.github.com/users/lo3ty/events{/privacy}","received_events_url":"https://api.github.com/users/lo3ty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-26T12:50:07Z","updated_at":"2016-06-09T14:04:55Z","closed_at":null,"body":"Hi there,\r\n\r\nsince the swagger-php update to v2.0 I got the following console notice when trying to add custom request headers through the swaggervel config file:\r\n```\r\nwindow.ApiKeyAuthorization is deprecated. Please use SwaggerClient.ApiKeyAuthorization.\r\n\r\nUsing window.authorizations is deprecated. Please use SwaggerUi.api.clientAuthorizations.add()\r\n```\r\n\r\nThe UI loads as usal but if you try to send a request, a javascript error occurs:\r\n```\r\nTypeError: auth.apply is not a function\r\n```\r\n\r\nI figured that the view file needs to be updated. My solution:\r\nin index.blade.php change Line 67 to:\r\n```swaggerApi.clientAuthorizations.add(\"{!!$requestKey!!}\", new SwaggerClient.ApiKeyAuthorization(\"{!!$requestKey!!}\", \"{!!$requestValue!!}\", \"header\"));```\r\n\r\nAfter this modification everything works just fine.\r\n\r\nWould be great if you could implement this in the next revision.\r\n\r\nLeonhard"},"comment":{"url":"https://api.github.com/repos/slampenny/Swaggervel/issues/comments/224904634","html_url":"https://github.com/slampenny/Swaggervel/issues/46#issuecomment-224904634","issue_url":"https://api.github.com/repos/slampenny/Swaggervel/issues/46","id":224904634,"user":{"login":"brianjorden","id":12365487,"avatar_url":"https://avatars.githubusercontent.com/u/12365487?v=3","gravatar_id":"","url":"https://api.github.com/users/brianjorden","html_url":"https://github.com/brianjorden","followers_url":"https://api.github.com/users/brianjorden/followers","following_url":"https://api.github.com/users/brianjorden/following{/other_user}","gists_url":"https://api.github.com/users/brianjorden/gists{/gist_id}","starred_url":"https://api.github.com/users/brianjorden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianjorden/subscriptions","organizations_url":"https://api.github.com/users/brianjorden/orgs","repos_url":"https://api.github.com/users/brianjorden/repos","events_url":"https://api.github.com/users/brianjorden/events{/privacy}","received_events_url":"https://api.github.com/users/brianjorden/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T14:04:55Z","updated_at":"2016-06-09T14:04:55Z","body":"Was having the exact same issue and the suggestion by @lo3ty worked perfectly. Removed the warnings and errors, seems to be exactly what is needed."}}
{"actor":{"display_login":"brianjorden"}}