Announcement Announcement Module
Collapse
No announcement yet.
Sparklr2 with self signed ssl cert Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sparklr2 with self signed ssl cert

    Hello,

    I am experimenting with the tonr2 & sparklr2 libraries :: I created the following setup
    - Created an app similar to sparklr2, deployed on machine A under tomcat with a self signed cert.
    - Tonr2 still same but now has a tab that points to new app. Tonr2 sits on a different machine.

    When I use http everything works fine. When i switch the URLs inside tonr2 to https and the tonr2 hits this line
    Code:
    InputStream photosXML = new ByteArrayInputStream(getSparklrRestTemplate().getForObject(URI.create(getSparklrPhotoListURL()), byte[].class));
    Going through the debugger i see the following
    Code:
    org.springframework.security.oauth2.consumer.OAuth2AccessTokenRequiredException: No OAuth 2 security context has been established. Unable to access resource 'app'.
    
    The resource object contains 
    accessTokenUri:https://192.168.15.100:8443/app/oauth/authorize
    I don't see any exceptions being thrown in tonr2 console. Am I missing anything ?

    Thank you

  • #2
    So is the root problem the OAuth2AccessTokenRequiredException? If so, can you verify that the request passes through the oauth 2 context filter?

    Comment


    • #3
      The root cause of the problem was the self signed certificate that I was using. For some reason I don't think that error is bubbling up all the way to the top.

      Used this recommendation to fix the issue:
      http://www.webapper.com/blog/index.p...hakeexception/

      Thank you

      Comment

      Working...
      X