org.springframework.security.oauth2.client.resource.UserRedirectRequiredException: A redirect is required to get the users approval

Stack Overflow | IKane | 5 months ago
  1. 0

    service to service authentication with Spring cloud Oauth 2

    Stack Overflow | 5 months ago | IKane
    org.springframework.security.oauth2.client.resource.UserRedirectRequiredException: A redirect is required to get the users approval
  2. 0

    Spring OAuth2RestTemplate loses token when configured to use JWT

    Stack Overflow | 12 months ago | Tim Webster
    org.springframework.security.oauth2.client.resource.UserRedirectRequiredException: A redirect is required to get the users approval
  3. 0

    Spring security OAuth2 UserRedirectRequiredException

    Stack Overflow | 2 years ago | user979349
    org.springframework.security.oauth2.client.resource.UserRedirectRequiredException: A redirect is required to get the users approval
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.springframework.web.client.RestTemplate - POST request for resulted in 400 (Bad Request); invoking error handler

    Stack Overflow | 2 years ago
    org.springframework.security.oauth2.client.resource.UserRedirectRequiredException: A redirect is required to get the users approval
  6. 0

    Accessing resource with expired bearer token fails with 500 http code

    Stack Overflow | 1 year ago | Stackee007
    org.springframework.security.oauth2.client.resource.UserRedirectRequiredException: A redirect is required to get the users approval

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.security.oauth2.client.resource.UserRedirectRequiredException

      A redirect is required to get the users approval

      at org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeAccessTokenProvider.getRedirectForAuthorization()
    2. OAuth2 for Spring Security
      OAuth2RestTemplate.createRequest
      1. org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeAccessTokenProvider.getRedirectForAuthorization(AuthorizationCodeAccessTokenProvider.java:359)
      2. org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeAccessTokenProvider.obtainAccessToken(AuthorizationCodeAccessTokenProvider.java:205)
      3. org.springframework.security.oauth2.client.OAuth2RestTemplate.acquireAccessToken(OAuth2RestTemplate.java:221)
      4. org.springframework.security.oauth2.client.OAuth2RestTemplate.getAccessToken(OAuth2RestTemplate.java:173)
      5. org.springframework.security.oauth2.client.OAuth2RestTemplate.createRequest(OAuth2RestTemplate.java:105)
      5 frames
    3. Spring
      RestTemplate.doExecute
      1. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:592)
      1 frame
    4. OAuth2 for Spring Security
      OAuth2RestTemplate.doExecute
      1. org.springframework.security.oauth2.client.OAuth2RestTemplate.doExecute(OAuth2RestTemplate.java:128)
      1 frame
    5. Spring
      RestTemplate$$FastClassBySpringCGLIB$$aa4e9ed0.invoke
      1. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:557)
      2. org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:503)
      3. org.springframework.web.client.RestTemplate$$FastClassBySpringCGLIB$$aa4e9ed0.invoke(<generated>)
      3 frames
    6. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      1 frame
    7. Spring AOP
      MethodInvocationProceedingJoinPoint.proceed
      1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      3. org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)
      3 frames
    8. org.springframework.cloud
      RestTemplateUrlTemplateCapturingAspect.captureUrlTemplate
      1. org.springframework.cloud.netflix.metrics.RestTemplateUrlTemplateCapturingAspect.captureUrlTemplate(RestTemplateUrlTemplateCapturingAspect.java:33)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    10. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:620)
      2. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:609)
      3. org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      5. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      6. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      7. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)
      7 frames
    11. OAuth2 for Spring Security
      OAuth2RestTemplate$$EnhancerBySpringCGLIB$$3473d19a.exchange
      1. org.springframework.security.oauth2.client.OAuth2RestTemplate$$EnhancerBySpringCGLIB$$3473d19a.exchange(<generated>)
      1 frame