Got that! I was actually intercepting AuthoriztionEndPoint request and did not specify @ExceptionHandler. Now when I added it comes to DefaultWebResponseExceptionTranslator and is able to translate. ...
Type: Posts; User: saamy; Keyword(s):
Got that! I was actually intercepting AuthoriztionEndPoint request and did not specify @ExceptionHandler. Now when I added it comes to DefaultWebResponseExceptionTranslator and is able to translate. ...
Thanks for your reply Dave.
Is oauthAccessDeniedHandler not suppose to handle exceptions? I have applied this filter to incoming requests
<access-denied-handler...
OAuth2Exception M6a extends AuthenticationException while AuthenticationException in M6d or latest snapshot doesn't extend AuthenticationException. Am I messing around versions somewhere? :(
...
I was trying to debug why 500 is thrown in case of RedirectMismatchException instead of 400. In ExceptionTranlationFilter.java line 127
RuntimeException ase = (AuthenticationException)
...
Thanks for replying!
I pointed to most recent milestone M6d and this time it gives me 500.
SEVERE: Servlet.service() for servlet spring threw exception
error="redirect_uri_mismatch",...
Greetings
In believed that in case of invalid_client (A client_id not supplied.) or redirect_uri_mismatch (Invalid redirect: does not match one of the registered values) or any such Runtime...
Greetings
I am working on OAuth M6. I am trying to use a custom tokenservices class (which extends RandomValueTokenServices) for implicit token type, which for some reasons is not working for this...
Hi!
I am working on 0Auth version M5 which complies with ietf version 22. Now I need to integrate with a client, which has OAuth implementation but based on some older version ietf 10...
Hi Dave,
For me URL redirect fixed it.
I are not planning to upgrade very soon. Rather I tried upgrading before, but looked like there lot of work to be done to move from M5 to M6. I will try...
Well I have a demo client with screens getAuthCode(makes request to /oauth/authorize)->getToken(makes request to /oauth/token)->getResource(makes request to the resource server). When I tried...
Hi Dave,
Unfortunately, though the code worked but in certain senario it is throwing StackOverflowError. Mostly when you press a back button after authorize.
I am thinking of an alternative...
Hi Dave,
Which is the latest version available?From the link on github I can see M6 is latest...
Hi !
I am trying to add user-approval-page attribute, giving me to 'authorization-server' element in my applicationContext.xml, which is giving me following error. I could however add...
Hi Dave,
I tried changing the urls on my application, it worked like a charm!
You were actually right, these issues were to do with the configuration in tonr/sparklr application. The minimal...
I just went through the other post you mentioned. I think the does work with spring-oauth based client making request if you provide the correct filter ordering. But when you paste the url directly...
Sorry if am unable to explain it in simple words. In short my question is why http://localhost:8080/sparklr2/authorize?clientid=tonr&redirect_uri.. url is not working directly? Why is it working only...
It resolved the exception I was getting but am not sure what exactly its purpose is.
My problem statement was that I wanted the authorization url to be...
I think I found the cause. It has to do with the order in which the filters are executed.
oauth2EndpointUrlFilter must be executed before springSecurityFilterChain
Would need you help to find a...
Even tried narrowing down the filter mapping to following with no luck
<filter-mapping>
<filter-name>oauth2EndpointUrlFilter</filter-name>
<url-pattern>/authorize</url-pattern>...
Is that normal? because in the DEBUG it complains of insufficient authentication. And I get the following error recursively which enventually leads to StackOverflow and I never see the screen after...
[DEBUG] AntPathRequestMatcher - Checking match of request : '/authorize'; against '/photos/**'
[DEBUG] FilterChainProxy -...
Okay, tried again with clean maven build and now after sparklr login, on '/authorize' I got following error:
[DEBUG] FilterChainProxy -...
Dave,
When I run the tonr2 (samples/oauth2/tonr) app on tomcat (through maven mvn tomcat:run), after authenticating from tonr, I should get redirect to sparklr2 on 'view photos'. But for me its...
I pulled out the code from here https://github.com/SpringSource/spring-security-oauth and modified following files:
1. oauth/samples/oauth2/sparklr/src/main/webapp/WEB-INF/spring-servlet.xml
...
Hi Dave, Thanks for your reply!
I added the filter but it still doesn't seem to work. I tired the same with tonr-sparklr apps and that doesn't work either. I have attached the screen shots of the...