Search:

Type: Posts; User: shahbazi; Keyword(s):

Search: Search took 0.03 seconds.

  1. Actually, I changed the dataType to 'json' and...

    Actually, I changed the dataType to 'json' and used ClientCredentialsTokenEndpointFilter and seems like it is working :)

    But, I think the problem still remains if we want to send the...
  2. cross-site (CORS) ajax call and JSONP problem

    Hi

    I am trying to develop a mobile app HTML5 + jQuery (PhoneGap) using OAuth2 Authentication.
    The problem is that you can not set the header through jsonp calls, then the...
  3. I was looking for simple SSO solution with SS...

    I was looking for simple SSO solution with SS OAuth2.
    Thanks for sharing
  4. Replies
    3
    Views
    770

    I am thinking to use @Before advice similar to...

    I am thinking to use @Before advice similar to
    @Before("execution(* org.springframework.security.oauth2.client.http.OAuth2ClientHttpRequestFactory.createRequest(..))")

    Then use an implementation...
  5. Replies
    3
    Views
    770

    Spring Batch client and rest template

    Hi

    I am trying to use OAuth2RestTemplate and call my resource server from my a spring batch job.
    Since I don't have access to OAuth2ClientContextFilter to get the access token, is there any...
  6. Replies
    5
    Views
    657

    I am not sure, but I am think there is bug in...

    I am not sure, but I am think there is bug in line 53
    of OAuth2AuthenticationProcessingFilter request.getParameter(OAuth2AccessToken.ACCESS_TOKEN)
    can not read the access token from request while...
  7. Replies
    5
    Views
    657

    Are you saying I asked for...

    Are you saying I asked for http://localhost:8080/api/photos#access_token?

    Why it isn't ? in the uri?
  8. Replies
    5
    Views
    657

    Problem on redirect_uri address

    Hi

    I am having problem url redirect address after a successful authorization.
    The redirect address has # instead of ?

    Is this a bug in
    AuthorizationEndpoint.appendAccessToken
    ...
  9. Replies
    6
    Views
    2,087

    Thanks Dave This helped to resolve the problem. ...

    Thanks Dave
    This helped to resolve the problem.
    I know the password (client_credentials) is not the recommended solution (even FB doesn't support the password grant type). But we are using the...
  10. Replies
    6
    Views
    2,087

    I noticed that the TokenEndpoint has changed and...

    I noticed that the TokenEndpoint has changed and /oauth/token requires that client needs authenticate in order to call this endpoint.
    Now, I am wondering how the grant_type of password or...
  11. for usecase 2, 1) for case of web applications,...

    for usecase 2,
    1) for case of web applications, IMHO, it is not a good practice to hard code the site names (e.g testdomain.com, m.testdomain.com) into the web application. may this is fine for web...
  12. The StandardSiteUrlFactory and query parameter

    Currently, the StandardSiteUrlFactory class doesn't append the query parameter into the newly created url!

    Another suggestion, Add new attribute (e.g. mParameter,mParamValue) to the...
  13. Replies
    23
    Views
    19,990

    Do you think the

    Do you think the <context:component-scan base-package="bigbank.web" /> is not registering our controller into application context?


    The provided tutorial.zip was enhancing Spring Security's...
  14. Replies
    23
    Views
    19,990

    Tutorial Application

    I took tutorial application from SVN and add another controller has ShowAccount
    and one method called myAccount as:


    @Controller(value = "showAccount")
    @RequestMapping("/showAccount.html")...
  15. Replies
    23
    Views
    19,990

    What package is in SecurityAnnotationAttributes?

    Do you know what jar file holds org.springframework.security.annotation.SecurityAnnotationAttributes?
  16. Trun off allowRawInjectionDespiteWrapping flag

    Actually we turned off allowRawInjectionDespiteWrapping by using GenericApplicationContext and setting setAllowRawInjectionDespiteWrapping to true

    like this:

    DefaultListableBeanFactory xbf =...
  17. Using annotation based transaction strategy

    I had same problem TOO. I was using annotation based transaction mgmt strategy. I had @Transactional in my service interfaces.

    The missing peace was :

    @Transactional(readOnly = false,...
  18. Thread: Wiring user

    by shahbazi
    Replies
    3
    Views
    831

    Using sessionScope bean

    Thanks for reply,

    Since our goal is not to expose any framework dependency into our code,
    I thought the Acegi might have mechanism like spring2's session scope bean, which returns instance of...
  19. Thread: Wiring user

    by shahbazi
    Replies
    3
    Views
    831

    Wiring user

    I am wondering how we could inject the user object (implements UserDetails) into a bean?

    An Order object has an instance of user, I want to container automatically injects user (principal) into my...
  20. Unit Test Spring Scoped Objects

    I had the same problem. I notice two things:
    1) I was using extends AbstractTransactionalDataSourceSpringContextTests
    So, I changed it into regular TestCase

    2) I Mocked request and session...
Results 1 to 20 of 20