odatatools icon indicating copy to clipboard operation
odatatools copied to clipboard

Using a local EDMX file?

Open thekevinbrown opened this issue 4 years ago • 2 comments
trafficstars

Our Odata service requires OAuth + bearer authentication. I've downloaded the XML file locally already, how can I either get this extension to read it, or go through the OAuth flow then provide a Bearer token to the backend?

thekevinbrown avatar Dec 18 '20 08:12 thekevinbrown

Run into that one as well. Quick workaround: Paste your metadata into a $metadata file and use npx serve . to serve the local directory. By default npx runs on http://localhost:5000

RainerAtSpirit avatar Jan 29 '21 15:01 RainerAtSpirit

Hi,

Sorry, must have overlooked this.

You can do this workaround, thank you @RainerAtSpirit for that input. Otherwise I see the request library is deprecated anyway. I'll try to have a look at the issue and provide an update the next weeks.

For now you could try to set the headers with the token manually. The extension uses request.js from npm. A short overview is in the wiki:

https://github.com/apazureck/odatatools/wiki

I'll create two issues here: Support Auth0 / Authentication and support local edmx file. I'll try to implement that in February, but no Promise :)

PR Welcome!

apazureck avatar Feb 01 '21 07:02 apazureck