Netflix / asgard

[Asgard is deprecated at Netflix. We use Spinnaker ( www.spinnaker.io ).] Web interface for application deployments and cloud management in Amazon Web Services (AWS). Binary download: http://github.com/Netflix/asgard/releases
http://netflix.github.com/asgard
Apache License 2.0
2.24k stars 403 forks source link

Ephemeral Failures when logging in via Github #714

Closed feanil closed 3 years ago

feanil commented 8 years ago

When using the GithubOauthAuthenticationProvider I see 403 when authing against github.

java.io.IOException: Server returned HTTP response code: 403 for URL: https://api.github.com/user

    at com.netflix.asgard.auth.GithubOauthAuthenticationProvider$GithubToken.getAPIModel(GithubOauthAuthenticationProvider.groovy:229)

    at com.netflix.asgard.auth.GithubOauthAuthenticationProvider$GithubToken.getOrgAffiliatedEmail(GithubOauthAuthenticationProvider.groovy:183)

    at com.netflix.asgard.auth.GithubOauthAuthenticationProvider$GithubToken.<init>(GithubOauthAuthenticationProvider.groovy:171)

    at com.netflix.asgard.auth.GithubOauthAuthenticationProvider.tokenFromRequest(GithubOauthAuthenticationProvider.groovy:114)

    at com.netflix.asgard.AuthController.signIn(AuthController.groovy:45)

    at org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55)

    at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:65)

    at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)

    at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)

    at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)

    at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)

    at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:380)

    at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)

    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)

    at com.planetj.servlet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:270)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

    at java.lang.Thread.run(Thread.java:744)