Changes between Version 2 and Version 3 of doc/developer/TokenArchitecture

Show
Ignore:
Timestamp:
05/03/07 18:12:32 (14 years ago)
Author:
benoitg
Comment:

WIP

Legend:

Unmodified
Added
Removed
Modified
  • doc/developer/TokenArchitecture

    v2 v3  
    11[[PageOutline]] 
    2 Contributor(s): Benoit Grégoire, last modified: 2007-05-01 
     2Contributor(s): Benoit Grégoire, last modified: 2007-05-03 
    33 
    44= Token, General model = 
     
    99 
    1010== Data model == 
     11token_templates 
     12 * token_network (Note:  Server-wide tokens aren't supported, but the code will look up the tokens of networks you peer with) 
     13 * token_max_data_transfer Ex: Allows capping bandwidth 
     14 * token_max_connection_duration: Ex: Allows limiting the length of a single connection 
     15 * token_max_usage_duration: Ex: Allows selling access by the hour 
     16 * token_max_wallclock_duration: Ex:  Allows selling daily, weekly or monthly passes 
     17 * is_reusable:  Is the connection reusable? (normally, yes) 
     18 
    1119tokens 
    1220 * token_id 
    1321 * token_status 
    14  * token_network (Note:  Server-wide tokens aren't supported, but the code will look up the tokens of networks you peer with) 
    15  * token_max_data_transfer Ex: Allows capping bandwidth 
    16  * token_max_connection_duration: Ex: Allows limiting the length of a single connection 
    17  * token_max_total_duration: Ex: Allows selling access by the hour 
    18  * token_expiration_date: Ex:  Allows selling daily, weekly or monthly passes 
    19  * is_reusable:  Is the connection reusable? (normally, yes) 
     22 * token_creation_date 
     23 * token_expiration_date: A computed value 
     24 * token_issuer:  A user in the system.  User responsable for the creation of the token (not necessarily the same as the one using it)  
     25 * token_owner:  The user that can USE the token. 
    2026 
    2127tokens_valid_nodes (Unfortunately, for hotels selling 24h access to their clients, we have to consider that their network may consist of more than one node.  If the token has no entry in this table, it's considered valid everywhere on the Network (and it's peers))