def get_secret_token(platform, version, global_version=GLOBAL_TOKEN_VERSION):
 token_identifier = '{global_version}:{platform}:{version}'.format(global_version=global_version, platform=platform, version=version)
 global_secret = g.secrets['request_signature_secret']
 return versioned_hmac(global_secret, token_identifier, global_version)

def get_secret_token ( platform , version , global_version = GLOBAL_TOKEN_VERSION ) : token_identifier = '{global_version}:{platform}:{version}' . format ( global_version = global_version , platform = platform , version = version ) global_secret = g . secrets [ 'request_signature_secret' ] return versioned_hmac ( global_secret , token_identifier , global_version )
for a given platform and version .