Forum Discussion
TriptiSodales
1 year agoFrequent Visitor
Configuration for OAuth 2.0 Cloud Foundry with Power BI
Hello, I am trying to connect power BI by O Auth feed as well web option for importing data from CLOUD FOUNDRY (SAP) . also created application in BTP. I got error while creating connection by...
jaineshp
Memorable Member
1 year agoHey TriptiSodales,
Looking at your Power BI to Cloud Foundry OAuth connection issue, here are the key steps to resolve this:
Prerequisites:
- Ensure your BTP application has proper OAuth client credentials
- Verify the OAuth scopes include necessary permissions for data access
- Check that redirect URIs are correctly configured in BTP
Power BI OAuth Setup:
- In Power BI, go to Get Data > Web > Advanced
- Use your Cloud Foundry API endpoint URL
- Select OAuth2 authentication
- Enter your BTP application's:
- Client ID
- Client Secret
- Authorization URL (typically: https://[subdomain].authentication.[region].hana.ondemand.com/oauth/authorize)
- Token URL (typically: https://[subdomain].authentication.[region].hana.ondemand.com/oauth/token)
Common Issues & Fixes:
- CORS errors: Add Power BI domain to allowed origins in BTP
- Token expiry: Set appropriate token refresh intervals
- Scope permissions: Ensure OAuth scope includes data read permissions
- SSL/TLS: Verify certificate configurations match
Alternative Web Approach: If OAuth fails, try using Web connector with:
- Basic authentication using service key credentials
- Direct API endpoints with proper headers
Additional Step: Test your OAuth flow first using Postman or similar tool to verify credentials work outside Power BI.
What specific error message are you seeing? That would help narrow down the exact issue.
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer