-
Bug
-
Resolution: Fixed
-
Critical
-
None
Github has shutdown its v2 API (https://github.com/blog/1160-github-api-v2-end-of-life). Consequently, calls to the v2 API fail and it becomes impossible to log into Jenkins when Github is used for authentication.
Exception: https://github.com/api/v2/json/organizations?access_token=ab5157147fbc2002bb0611c019d9070822c9a7a0 Stacktrace: java.io.FileNotFoundException: https://github.com/api/v2/json/organizations?access_token=ab5157147fbc2002bb0611c019d9070822c9a7a0 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at org.kohsuke.github.GitHub.parse(GitHub.java:310) at org.kohsuke.github.GitHub._retrieve(GitHub.java:196) at org.kohsuke.github.GitHub.retrieveWithAuth(GitHub.java:185) at org.kohsuke.github.GitHub.retrieveWithAuth(GitHub.java:177) at org.kohsuke.github.GitHub.getMyOrganizations(GitHub.java:430) at org.jenkinsci.plugins.GithubAuthenticationToken.<init>(GithubAuthenticationToken.java:77) at org.jenkinsci.plugins.GithubSecurityRealm.doFinishLogin(GithubSecurityRealm.java:312) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616)