How can i generate client id and client secret without creating an add-on? If i know the register url, can I generate client id and secret programatically?
So there are 2 answers to this question IMO. You can very much generate your own clientID/secret (as long as it is unique), and define them in the meta.json as Rashed Talukder (see: Getting Started > Building a Jive Add-On) I would recommend sticking with the example formats found here: OAuth 2.0 Client Builder | Jive Developer
Unfortunately, the clientId/secret will not do anything unless they are tied to an add-on. So yes to creating your own clientID/secret; however, no to being able to do them in isolation of an add-on (WRT to actually doing something with the clientId/secret).
Hope that helps clarify.
Not sure. But you could just use the pre-built oAuth add-on; Using Postman to set up Webhooks
I you can generate a client ID and a secret on your own and specify it in your meta.json file as those parameters. If there's a special formula for generating those or length requirement, I'm looking into finding out for you. But if you should discover it through trial and error, please do feel free to let all of us know!
Thank you All.
I am using client id and client secret to generate access token and then calling the jive service using the OAuth2RestTemplate. So I just wanted to get the client id and secret. Currently I am creating new client (using jive analytics service) to get this client id/secret without the add-ons.
You bring up a good point. The Client ID/Secret you generate for Analytics is only valid for Using the V2 Jive Data Export Service (Analytics). It isn't valid for any other Jive API service. Thanks for sharing the detail.
Great. Thanks for that information. I have created a sample add-on just for generating client id/secret(Or from any of my existing add-ons). Generate access token, binding with OAuth2RestTemplate, call JIves people service and extended services via OAuth2. Does this make sense?
Also one more question: If we use grant type as password for acess token, is it necessary that the user should be admin user. Because I can generate the token using any user. But not sure about the people service and other service will work.
Grant type password can be used against any native Jive user (i.e. if it's an SSO user, it will not work because Jive is not the authority).
Who ever does the grant, that is who you will be when you get the token. If you want to Run-As other people, you can check out Core V3 API - Run-As Feature & Signed Add-Ons ... which requires that you get a Full Access Admin token.
Hope that helps. =)
Thanks Ryan Rutan
Retrieving data ...