The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
seangly
2 years agoNew Contributor III
Okta Bearer Token for API call
Hi Community,
We are trying to set up Rest API call to execute Data Management (OneStream v8.1) call from external system (e.g. Postman)
I followed the document for REST_API_Implementation_Guide....
- 2 years ago
I've only used Azure so don't have an example. A quick google didn't seem to be super helpful but it looks like there are a few video tutorials about it.
Basically you create a new request which connects to Okta and will retrieve a new bearer token. On the test tab of that request you have your set variable command which you tried above. Most likely this bearer token will have a timelimit of say 60 minutes so you will need to run it every time you want to test things, prior to running your OneStream request.
Then on your OneStream request you will populate your bearer token variable into the bearer token field.
DanielWillis
2 years agoValued Contributor
Which part isn't working exactly? What are you encountering?
Looking at your screenshots it kinda looks like you're trying to get a bearer token from your ExecuteStep call instead of before the ExecuteStep call?
Based on what you're doing, you should be doing a call to get the Bearer token from Okta, using your code to store it in a variable on the test tab, then using that variable in the ExecuteStep call
- seangly2 years agoNew Contributor III
Hi Daniel,
That is correct, I am doing it in the same call. I am not familiar with Postman so when you says doing a call to get the Bearer token from okta, will have a sample on the setup?
That is my missing part, getting the Bearer token before I can execute any Api to OneStream.
Regards,
Seang
- DanielWillis2 years agoValued Contributor
I've only used Azure so don't have an example. A quick google didn't seem to be super helpful but it looks like there are a few video tutorials about it.
Basically you create a new request which connects to Okta and will retrieve a new bearer token. On the test tab of that request you have your set variable command which you tried above. Most likely this bearer token will have a timelimit of say 60 minutes so you will need to run it every time you want to test things, prior to running your OneStream request.
Then on your OneStream request you will populate your bearer token variable into the bearer token field.
- seangly2 years agoNew Contributor III
Hi Daniel,
I am getting close to the solution, like you said it's a two part call. First is the create that Token and put it into a variable and then use that variable as part of the OneStream API call.
Thank for your help
Regards,
Related Content
- 4 years ago
- 9 months ago