Forum Discussion
jyotiraditya12
6 years agoNew Member
Pass URL from user input to StartLogin Method in OAuth authentication
Hi, I am building a custom connector to connect to our API via OAuth2. This is so we can use our api as a data source to powerbi. I need a parameter to construct Authorize URL as input from the...
v-lid-msft
Community Support
6 years agoHi jyotiraditya12 ,
Sorry for that we did not find a sample to add input box in the UI sample , but here is a thread about dorp list in UI you can refer : https://community.powerbi.com/t5/Desktop/Custom-Data-Connector-UI-Dropdown-list/td-p/484102
https://docs.microsoft.com/en-us/power-query/handlingdataaccess#publish-to-ui
Then the result sohuld be used in the function, please refer to the documnet about oauth flow: https://docs.microsoft.com/en-us/power-query/handlingauthentication#implementing-an-oauth-flow.
Best regards,