Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
not_the_humans
New Member

powerquery SDK - custom connector oauth authentication

I'm attempting to build, for the first time, a custom connector in the power query sdk. Authentication to the api is handled by OAuth 2, with grant-type=client_credentials. If I were to use curl the request would look like this:

 

curl -u '<Client ID>:<Client Secret>' \
  --data 'grant_type=client_credentials' \
  'https://<domain>/oauth/token'

 

I can't figure out how, in the SDK, to remove the requirement for the user to authenticate against a URI as they'd be expected to do if the grant-type were authorization_code. StartLogin appears to be a mandatory method when Authentication = OAuth, and within StartLogin a ResourceURI is also mandatory. Any help gratefully received.

1 ACCEPTED SOLUTION
artemus
Employee
Employee

Support for SPN is currently not supported for custom connectors. You could probably implement this yourself using the API key auth type. Another option is to create a service account as a stand in for the service account. The gateway admin portal does support service principal, so maybe that would work for what you are doing?

View solution in original post

1 REPLY 1
artemus
Employee
Employee

Support for SPN is currently not supported for custom connectors. You could probably implement this yourself using the API key auth type. Another option is to create a service account as a stand in for the service account. The gateway admin portal does support service principal, so maybe that would work for what you are doing?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors