On 3/26/07, <b class="gmail_sendername">Ed Howland</b> &lt;<a href="mailto:ed.howland@gmail.com">ed.howland@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The documentation on the website says:<br><br>Built-in local machine check (local_request?)&nbsp;&nbsp; Defines custom MV Admin<br>authorization method and module.<br>Automatically loads app/masterview/admin_auth_mixin.rb if present.
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;config.admin_auth_mixin = {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:file =&gt; &#39;admin_auth_mixin&#39;, # require file in app/masterview<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:file_loc =&gt; nil&nbsp;&nbsp;# :RAILS_ROOT or root dir path for alt load load<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:module =&gt; :MasterViewAdminAuthMixin, # mixin module name
<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br><br>&nbsp;&nbsp;&nbsp;&nbsp;see examples/rails_app_admin_auth/auth_local_request_mixin.rb for<br>more details<br><br>But this file doesn&#39;t exist in my examples folder.</blockquote><div><br><br>I have to check the build to see you are not getting the file. 
<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">What should admin_auth_mixin do to allow access from non-local hosts?<br><br>
</blockquote></div><br><br>The file is attached. Let me know if you need any additional info. You can basically change out the logic in allow_access? to do whatever checking you want. It is mixed into to the controller so it has access to all of the controller&#39;s data.
<br><br><br>Jeff