Skip to content

trusterd/mruby-trusterd-basicauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

mruby-trusterd-basicauth

example

s.set_access_checker_cb {                                                        
                                                                                 
  if s.uri =~ /^\/auth\//                                                        
    basic = HTTP2::Server::BasicAuth.new({                                       
      :realm_name  => "Private Area",                                            
      :htpasswd    => "#{root_dir}/htdocs/auth/.htpasswd",                       
    })                                                                           
    basic.authn(s)                                                               
  end           
  
}                                                                                

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages