Comments (6)
I'm trying to make a POST request which requires a Basic Auth authorization. But it's not working, I wonder if it's impossible at this moment. Do you know what could be? Has something to do with the support you intend to implement on this Issue?
-Edit- I get the 401 status code. The exactly same authorization header on Postman works fine.
from unreal-fetch.
Hey, just appedning "Username:Password" is not enough. You need to encode that as Base64. That was the missing part here.
See: https://en.wikipedia.org/wiki/Basic_access_authentication#Protocol
I am planning to make some updates to Fetch this week. I will make sure to do this too.
from unreal-fetch.
Thank you! I would appreciate very much if you do this update. I bought you plugin because it's much more well documented than the other one on the marketplace. But only this issue is preventing me to achieve my goal.
But actually, what is your plan to adress this issue? Do you intend to create a Base64 Encode node so we can manually encode our string before adding it to the array? Or something else?
-Edit-
I was able to get it working! For people that might have the same problem on the future: You have to encode JUST the username:password to Base64, then you add the string "Basic " (atention to the space) before the encoded string. After that, you do exactly what is told on the examples of this plugin to add custom Headers.
The problem is: I was only able to encode the string to Base64 using a node from the competitor REST plugin. Now I will wait for Arunoda to create some solution to encode to Base64 on this plugin. It would be better to have everything needded on just one plugin.
from unreal-fetch.
@juninholiveira I will create a simple helper function to add the username & password & it'll create the whole auth header. I will ping you when it's available on the marketplace.
from unreal-fetch.
@arunoda Amazing! Better than what I imagined. I will wait patiently.
from unreal-fetch.
@juninholiveira I just added support for this. Will available on the marketplace soon.
from unreal-fetch.
Related Issues (14)
- Add binary support HOT 2
- Adding a PATCH method ?
- packaging: warning ffetchjsonoptions::body is not initialized properly HOT 3
- Cannot distinguish between uppercase and lowercase in the Json "names"
- Can you make "Get number (int64)" or "Get number (String)" ?
- Token_Id HOT 2
- Add query string formatter
- Include content type selector.
- Purchase HOT 2
- Add support for a TSV/CSV parser
- 4.27 Support HOT 1
- UE 5.0.0 support HOT 3
- ue4.27 https not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unreal-fetch.