Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
documentation:latest:applications:authbasic [2016/02/27 08:58]
127.0.0.1 external edit
documentation:latest:applications:authbasic [2016/03/09 20:55]
xguimard
Line 25: Line 25:
 For example, to forward login (''​$uid''​) and password (''​$_password''​ if [[..passwordstore|password is stored in session]]): For example, to forward login (''​$uid''​) and password (''​$_password''​ if [[..passwordstore|password is stored in session]]):
 <​code>​ <​code>​
-Authorization => "Basic "​.encode_base64("​$uid:​$_password"​)+Authorization => "Basic "​.encode_base64("​$uid:​$_password", "")
 </​code>​ </​code>​
 +
 +<note important>​Don'​t forget to add an empty string as second argument of encode_base64 to avoid insert of "​newline"​ characters</​note>​
  
 LL::NG provides a special function named [[..extendedfunctions#​basic|basic]] to build this header. LL::NG provides a special function named [[..extendedfunctions#​basic|basic]] to build this header.