Skip to content

Conversation

onmomo
Copy link

@onmomo onmomo commented Aug 29, 2025

This PR should help to reproduce the multi-auth oauth2 issues we are facing.

apiProperties.json as suggested by the docs: https://learn.microsoft.com/en-us/connectors/custom-connectors/multi-auth#configuration-with-entra-id-and-oauth-20

and as further reference:

With the current example, it is not possible to go through the connection setup flow in power automate. Even if we remove all the ":clientId" that currently prevent us from storing the connection, it would still not run through our OAuth flow but would rather provide our API with the logged in EntraID JWT token. There is no pop up window opening for example.

"parameters": {
"token": {
"uiDefinition": {
"constraints": {
Copy link
Author

@onmomo onmomo Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems required, otherwise the Power Automate UI will fail with a JS error accessing undefined attribute.
The docs should be updated to include this as well

"redirectMode": "GlobalPerConnector",
"customParameters": {
"authorizationUrl": {
"value": "https://auth-staging.starmind.com/auth/realms/1/protocol/openid-connect/auth"
Copy link
Author

@onmomo onmomo Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also need to be able to replace "auth-staging.starmind.com" and "1" with corresponding connectionParameters.
We found several examples in the official connector repository that state it should be possible as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
}
},
"token:clientId": {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

token:clientId will fail during connection creation with:
Screenshot 2025-08-29 at 13 26 33

"title": "Apply Starmind API key to Header",
"parameters": {
"x-ms-apimTemplateParameter.name": "Authorization",
"x-ms-apimTemplateParameter.value": "Bearer @connectionParameters('api_key')",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove for the time being since Power Automate will complain about missing api_key connectionParameter in case of OAuth authentication where this parameter is not required.
Please advise how to proceed.

@onmomo onmomo changed the title Oauth starmind connector Oauth starmind connector - investigation Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant