Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't call metadata urls that require oAuth header #93

Open
johnwc opened this issue Apr 16, 2023 · 3 comments
Open

Can't call metadata urls that require oAuth header #93

johnwc opened this issue Apr 16, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@johnwc
Copy link

johnwc commented Apr 16, 2023

The oData service we use requires a Authorization: Bearer <access_token> header for authentication. Can the UI allow us to set temporary header values for metadata endpoint request?

@johnwc johnwc added the bug Something isn't working label Apr 16, 2023
@johnwc
Copy link
Author

johnwc commented May 19, 2023

@unchase Any news? Seems like a simple thing to fix.

Also, could the request check to see if $metadata is already in the URL, if so don't append it to the url? We have oData URLs that we have to append a query string to the URL that contains an auth key.

@LiQuick
Copy link

LiQuick commented Sep 13, 2023

Dear John,

Have you tried to add an own eventhandler which is called on the connected service SendingRequest2 event? With following code you can add your own headers before the httpmessage is send:
e.RequestMessage.SetHeader("Authorization", "Bearer bladiebla");

Best regards,
Rémy

@johnwc
Copy link
Author

johnwc commented Sep 13, 2023

Dear Rémy,

I stated in the OP about the issue being in the UI of the generator, not the code it produces.

Best regards,
John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants