GithubHelp home page GithubHelp logo

Comments (6)

juninholiveira avatar juninholiveira commented on May 20, 2024

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?
Captura de tela 2021-07-26 220939
-Edit- I get the 401 status code. The exactly same authorization header on Postman works fine.

from unreal-fetch.

arunoda avatar arunoda commented on May 20, 2024

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.

juninholiveira avatar juninholiveira commented on May 20, 2024

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.

arunoda avatar arunoda commented on May 20, 2024

@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.

juninholiveira avatar juninholiveira commented on May 20, 2024

@arunoda Amazing! Better than what I imagined. I will wait patiently.

from unreal-fetch.

arunoda avatar arunoda commented on May 20, 2024

@juninholiveira I just added support for this. Will available on the marketplace soon.

from unreal-fetch.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.