3 Replies Latest reply on Sep 1, 2015 1:08 PM by nilsheuer

    Stand alone application to consume Jive rest API


      I would like to develop a custom web application which retrieves and displays data from Jive instance. For e.g. i would like to retrieve list of all users in Jive instance and display in the cusomt web application . I need to get the authentication based on the user credentials i provide in the custom web application . My idea is to match the username entered to be same as in the application and jive system from where we are trying to get the data of users.


      Is there any one who has worked on similar requirements or any one has any ideas?? .


      We are integrating with Jive 8.



      Any pointers will be helpful.

        • Re: Stand alone application to consume Jive rest API

          Its a bit tricky to get a user's credentials.

          Here's what I think you can try.


          Create a standalone app which can call any jive REST api (to start with, the ones you have mentioned).

          Ensure this service has super admin access. So now obviously it can access all data.


          Now when a user logs in, use the Jive api run as feature mentioned here --> Core V3 API - Run-As Feature & Signed Add-Ons

          Make a call to REST api using the super admin account, but running as the logged in user's username .

          If you see the documentation, you just need a username or userid, no password.


          Use this to run as that user, and you can be assured only the content accessible to that user will be shown, though actually you are using a super admin account.

          • Re: Stand alone application to consume Jive rest API


            Hope you are doing good. Why are you not using oAuth and SSO, instead of passing user credentials.

            • Re: Stand alone application to consume Jive rest API

              I think matching usernames is a terrible idea probably not the best way to go about this. As Amit suggested using OAuth is probably the best approach.

              I implemented this recently for an Office365/SharePoint application that used Jive data. You just popup the Oauth dialog once, and associate the tokens with the account of your current user in your application.


              Actually, I submitted this as a topic for a session at JiveWorld, so maybe Ryan Rutan can approve my talk now, since there is customer demand ;-)