On 3/26/07, <b class="gmail_sendername">Ed Howland</b> <<a href="mailto:ed.howland@gmail.com">ed.howland@gmail.com</a>> 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?) Defines custom MV Admin<br>authorization method and module.<br>Automatically loads app/masterview/admin_auth_mixin.rb if present.
<br><br> config.admin_auth_mixin = {<br> :file => 'admin_auth_mixin', # require file in app/masterview<br> :file_loc => nil # :RAILS_ROOT or root dir path for alt load load<br> :module => :MasterViewAdminAuthMixin, # mixin module name
<br> }<br><br> see examples/rails_app_admin_auth/auth_local_request_mixin.rb for<br>more details<br><br>But this file doesn'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> </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's data.
<br><br><br>Jeff