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

Authenticated request without override header #324

Open
Drolegc opened this issue Mar 21, 2021 · 4 comments
Open

Authenticated request without override header #324

Drolegc opened this issue Mar 21, 2021 · 4 comments

Comments

@Drolegc
Copy link

Drolegc commented Mar 21, 2021

Is your feature request related to a problem? Please describe.
It is not a problem, but I would like to not override the header on every HTTP request, I mean... this package is about authentication.
Describe the solution you'd like
When the login is successful, the header on every request needs to be authenticated. With the option to be non-authenticated.

@Drolegc Drolegc changed the title Authenticated request withou override header Authenticated request without override header Mar 21, 2021
@d0whc3r
Copy link
Owner

d0whc3r commented Mar 21, 2021

what do you mean? this plugin search in every header for a possible replace, but it is optional if you don't have the key to replace the petition will not be touched

@d0whc3r
Copy link
Owner

d0whc3r commented Mar 21, 2021

Here is na example with autenticated petition:

Authorization: 'Bearer {auth_token}',

@Drolegc
Copy link
Author

Drolegc commented Mar 21, 2021

So, every request is authenticated?
Because if I do
$http({url:URL,method:'GET}) it throw an error because it is not authenticated. (And if I see on the network tab, the header, it does not show up the Authorization field.
But if I put the header on the HTTP method (like the example), it works fine

@d0whc3r
Copy link
Owner

d0whc3r commented Mar 21, 2021

If you don't include the header in the request, the request won't have the header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants