How to set X-Auth-Token header ?
See original GitHub issueHello,
My Rest server needs an X-Auth-Token header to authorize the file sending. How do i set it on ng-flow ? This works:
flowFactoryProvider.defaults = {
target : 'http://localhost:8080/imageUpload',
permanentErrors : [ 404, 500, 501 ],
singleFile : true,
headers: {'X-Auth-Token' : 'user:1407172832672:a334564e7dd50848bc20f8984a152f77'}
};
But i can’t leave the token hard coded of course, i need to get it from “$rootScope.authToken” and set it to $flow from my controller. Thanks
Issue Analytics
- State:
- Created 9 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
When looking at the differences between X-Auth-Token vs ...
In case of 'x-auth-token' user has to supply username/password for the first time and server returns a access-token in header field 'x-auth-token'. For...
Read more >Deprecate header "X-Auth-Token" by using "Authorization"
The header X-Auth-Token is designed to authenticate request that doesn't contain secure cookie. e.g., API requests from notebook.
Read more >X-Authorization in headers for API interface - PHP - SitePoint
headers : X-Authorization: TOKEN TOKEN Where TOKEN is the token. The bareword “TOKEN” shown in the previous line must be included.
Read more >The XAuth Protocol - IETF
Client software often desires resources or identity claims that are managed independent of the client. This protocol allows a user and/or ...
Read more >Authorization and Headers - Yahoo Developer Network
This article describes authentication and authorization configurations required to ... See DSP Authentication guide for setup instructions. ... X-Auth-Token.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Example of my controller
… on my html
<div flow-init="flowOptions">
Hey guys i figured a way around the problem with the help many others, and it works. Comment any configuration you had on the provider, or delete it,(flowFactoryProvider.defaults =…) . Then create a $scope variable, something like $scope.flowOptions, and on your flow-init set it like flow-init=“flowOptions”. I just finished the first test.