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

Add Basic Authorization #5

Open
totpero opened this issue Apr 2, 2024 · 0 comments
Open

Add Basic Authorization #5

totpero opened this issue Apr 2, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@totpero
Copy link
Contributor

totpero commented Apr 2, 2024

In documentatia API https://btepos.ro/documentatie din 22.03.2024 este introdusa "Autentificare endpoint-uri API." folosind Basic Authorization.

https://stackoverflow.com/questions/58014360/how-do-you-use-basic-authentication-with-system-net-http-httpclient

var authenticationString = $"{_username}:{_password}";
var base64EncodedAuthenticationString = Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes(authenticationString));
DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", base64EncodedAuthenticationString);
@totpero totpero self-assigned this Apr 2, 2024
@totpero totpero added the enhancement New feature or request label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant