What are the steps for setting up OAuth 2 0 authentication between Power BI and Autodesk Forge

0 votes
What are the steps for setting up OAuth 2.0 authentication between Power BI and Autodesk Forge?

I need to integrate Power BI with Autodesk Forge and set up OAuth 2.0 authentication for secure access. What are the detailed steps to configure this? Additionally, are there specific settings or permissions required on either side to ensure a successful connection? Tips for troubleshooting common issues during setup would be appreciated.
Dec 23, 2024 in Power BI by Evanjalin
• 10,680 points
48 views

1 answer to this question.

0 votes

Here are the detailed steps to set up the OAuth 2.0 authentication between Autodesk Forge and Power BI.

Step 1: Register Your Application in Autodesk Forge

Go to the Autodesk Forge Developer Portal and log in with your Autodesk account.

Go to the Applications section and click on Create Application.

Provide a name, description, and callback URL for your Application. The callback URL should match the URL that Power BI will redirect to after authentication.

Once registered, you'll receive a Client ID and Client Secret, which you should keep safe because they will be needed in the future for your OAuth 2.0 setup.

Step 2: Configure the OAuth 2.0 in Power BI

Open Power BI Desktop and navigate to Home > Get Data.

HTTP endpoints access the Autodesk Forge APIs; hence, the selected source is the Web.

It will ask Advanced to set up the API URL for authentication and data requests.

Then, to connect, make that POST request at https://developer.api.autodesk.com/authentication/v1/authenticate, which will give you an access token from Autodesk Forge using Postman.

You should be required to pass in your Client ID and Client Secret in the request body, along with the appropriate scopes (e.g., data: read, bucket:read).

You'll take the access token and copy it to Power BI as soon as you are successful.

Step 3: Power BI Connects Autodesk Forge

In Advanced Web Source settings, put any of the Forge API endpoints, such as https://developer.api.autodesk.com/.... The request should be configured with a provided access token. You can do this by adding "Authorization: Bearer <access_token>" in the header configuration.

Try the connection to see if Power BI is capable of viewing Autodesk Forge API data.

Step 4: Automated Refresh of Token

Since the token contains OAuth, it is time to refresh the token automatically.

For purposes of asking for new tokens regularly, use any of the following if a Power BI data gateway, a script, or a tool such as Python or PowerShell is used.

Remember to synergize your refresh mechanism with the safe storage and retrieval of your newly acquired access tokens.

Step 5: Troubleshooting Common Problems Invalid ClientId/Secret: cross-check on credentials from Autodesk Forge Developer Portal Callback URL not matching the callback URL in Power BI and Forge application settings. Token Expiry: Frequent token refreshes should be scheduled, especially if your dashboards are real-time.

API Limits: Confirm the Autodesk Forge API rate limit and optimize your queries to avoid exceeding them.

By following these steps, you can securely link Power BI to Autodesk Forge via OAuth 2.0, ensuring seamless integration and reliable access to data.

answered Dec 23, 2024 by pooja
• 11,310 points

Related Questions In Power BI

0 votes
0 answers

What are the best practices for creating responsive layouts and custom themes in Power BI reports?

What are the best practices for creating ...READ MORE

Oct 14, 2024 in Power BI by anonymous
• 10,680 points
190 views
0 votes
0 answers

What are the key differences between Power BI Report Server and Power BI Service?

What are the key differences between Power ...READ MORE

Nov 15, 2024 in Power BI by Evanjalin
• 10,680 points
82 views
0 votes
1 answer

What are the key differences between Power BI Report Server and Power BI Service?

The distinction between Power BI Report Server ...READ MORE

answered Nov 19, 2024 in Power BI by pooja
• 11,310 points
78 views
0 votes
1 answer
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,410 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 22, 2018 in Power BI by nirvana
• 3,130 points
2,793 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,520 points
1,568 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 52,350 points
1,701 views
0 votes
1 answer
+2 votes
2 answers

What are the best practices for creating responsive layouts and custom themes in Power BI reports?

Designing and Developing Custom Themes and Responsiveness ...READ MORE

answered Oct 22, 2024 in Power BI by pooja
• 11,310 points
219 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP