Announcement Announcement Module
Collapse
No announcement yet.
Tutorial oAuth2 with application profile Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tutorial oAuth2 with application profile

    Hi,

    I'm trying to configure the password resource type on the tonr tutorial:

    <oauth:resource id="sparklr" type="password" clientId="tonr"
    accessTokenUri="http://localhost:8080/sparklr2/oauth/authorize"/>

    and sparklr:

    <oauth:client-details-service id="clientDetails">
    <oauth:client clientId="tonr" authorizedGrantTypes="password,authorization_code"/>
    </oauth:client-details-service>

    One piece I'm missing is where to configure the sparklr customer username/password in the tonr app, so tonr can pass these and get back an access token.

    Would appreciate any help, as the tonr app has now stopped working when I click "View my Sparklr photos".

    Any help would be appreciated.

  • #2
    <oauth:resource id="sparklr" type="password" clientId="tonr" clientSecret="mysparklrpassword"
    accessTokenUri="http://localhost:8080/sparklr2/oauth/authorize"/>

    Comment


    • #3
      Hey so did that end up working for ya?

      I tried to change to password on the client but i dont see it ever accessing the server.

      I have a web Filter but nothing there.

      Comment


      • #4
        Hi, I've only recently revisited this issue. The updated spec has new terminology called Grant Type and we are interested in Resource Owner Password Credentials support. I've got this working by providing a new implementation of OAuth2Profile on the client. The core piece is documented here.

        It does work but I'd been keen to try and check this in so it works ootb. If someone can point me in the right direction.

        Comment


        • #5
          I'd suggest opening a JIRA issue and attaching a patch with your suggested changes.

          https://jira.springsource.org/browse/SECOAUTH

          Comment


          • #6
            Hi, Can you send a demo about 'Resource Owner Password Credentials' to me, Thank you very much!!!!!!!!!!!!!!

            Comment


            • #7
              You could start with the integration tests at https://github.com/SpringSource/spri...nProvider.java

              Comment

              Working...
              X