apache - Pass OS values to extJS app -
how can access external system values within extjs application? 1 of main reasons need instead of doing authentication extjs application, using apache provide protected directories on server, want able pass of information user application, once authenticated , app opened. far easier use ldap authentication in manner...
pass values through:
apache → backend app → generated html → frontend app (ext js)
your backend application, whatever technology built on, see authentication information apache in environment variables. actual variable names depend on setup. googlable as:
apache auth user environment variable <your_backend_technology>
then, information obtained apache need inserted in html javascript/json bit this:
<script type="text/javascript"> var auth_info = { "username": "john smith" // other information }; </script>
note needs inserted before ext js code.
finally, in ext js app, access info global variable:
auth_info.username
Comments
Post a Comment