Exemplo n.º 1
0
class TokenSigner(auth.TokenKind):
  """Used to create upload tickets."""
  expiration_sec = DEFAULT_LINK_EXPIRATION.total_seconds()
  secret_key = auth.SecretKey('isolate_upload_token', scope='local')
Exemplo n.º 2
0
class LinkTicketToken(auth.TokenKind):
    """Parameters for ServiceLinkTicket.ticket token."""
    expiration_sec = 24 * 3600
    secret_key = auth.SecretKey('link_ticket_token')
    version = 1
Exemplo n.º 3
0
class BootstrapToken(auth.TokenKind):
    expiration_sec = 3600
    secret_key = auth.SecretKey('bot_bootstrap_token')
    version = 1
Exemplo n.º 4
0
class BuildToken(auth.TokenKind):
    """Used for generating tokens to validate build messages."""
    expiration_sec = model.BUILD_TIMEOUT.total_seconds()
    secret_key = auth.SecretKey('build_id')
Exemplo n.º 5
0
class UploadIdSignature(auth.TokenKind):
    """Token to use to generate and validate signed upload_session_id."""
    expiration_sec = SESSION_EXPIRATION_TIME_SEC
    secret_key = auth.SecretKey('upload_session_id_signing', scope='local')
    version = 1