mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-31 17:39:12 +00:00 
			
		
		
		
	* Switch to Python 2.x due to lack of decent LDAP support in Python 3.x * Add LDAP backend for authentication/authorization * Add PAM backend for authentication * Add getent backend for authorization * Add preliminary CSRF protection * Update icons * Update push server documentation, use nchan from now on * Add P12 bundle generation * Add thin wrapper around Python's SQL connectors * Enable mailing subsystem * Add Kerberos TGT renewal cronjob * Add HTTPS server setup commands for nginx
		
			
				
	
	
		
			16 lines
		
	
	
		
			460 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			460 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
 | |
| from certidude import config
 | |
| from certidude.auth import login_required, authorize_admin
 | |
| from certidude.decorators import serialize
 | |
| from certidude.relational import RelationalMixin
 | |
| 
 | |
| class LogResource(RelationalMixin):
 | |
|     SQL_CREATE_TABLES = "log_tables.sql"
 | |
| 
 | |
|     @serialize
 | |
|     @login_required
 | |
|     @authorize_admin
 | |
|     def on_get(self, req, resp):
 | |
|         # TODO: Add last id parameter
 | |
|         return self.iterfetch("select * from log order by created desc")
 |