import os

def create_new_annotation(target, text, uri, group='Kzwy6GDV', tags=[]):
    target['type'] = 'TextQuoteSelector'
    a = {
        'group': group,
        'permissions': {'read': ['group:{}'.format(group)]},
        'tags': tags,
        'target': [{'selector': [
            target
        ]}],
        'text': text,
        'uri': uri,
    }
    return a

def get_token_params(app, username):
    token = app.hypothesis_client.grant_token(username=username)
    params = {
        'assertion': token.decode(),
        'grant_type': 'urn:ietf:params:oauth:grant-type:jwt-bearer',
    }
    return params

4387359755cc17edfe17859fbe4bb5a2b8a801e8
<mask token>

<mask token>


def get_token_params(app, username):
    token = app.hypothesis_client.grant_token(username=username)
    params = {'assertion': token.decode(), 'grant_type':
        'urn:ietf:params:oauth:grant-type:jwt-bearer'}
    return params

<mask token>


def create_new_annotation(target, text, uri, group='Kzwy6GDV', tags=[]):
    target['type'] = 'TextQuoteSelector'
    a = {'group': group, 'permissions': {'read': ['group:{}'.format(group)]
        }, 'tags': tags, 'target': [{'selector': [target]}], 'text': text,
        'uri': uri}
    return a


def get_token_params(app, username):
    token = app.hypothesis_client.grant_token(username=username)
    params = {'assertion': token.decode(), 'grant_type':
        'urn:ietf:params:oauth:grant-type:jwt-bearer'}
    return params

import os


def create_new_annotation(target, text, uri, group='Kzwy6GDV', tags=[]):
    target['type'] = 'TextQuoteSelector'
    a = {'group': group, 'permissions': {'read': ['group:{}'.format(group)]
        }, 'tags': tags, 'target': [{'selector': [target]}], 'text': text,
        'uri': uri}
    return a


def get_token_params(app, username):
    token = app.hypothesis_client.grant_token(username=username)
    params = {'assertion': token.decode(), 'grant_type':
        'urn:ietf:params:oauth:grant-type:jwt-bearer'}
    return params

import os

def create_new_annotation(target, text, uri, group='Kzwy6GDV', tags=[]):
    target['type'] = 'TextQuoteSelector'
    a = {
        'group': group,
        'permissions': {'read': ['group:{}'.format(group)]},
        'tags': tags,
        'target': [{'selector': [
            target
        ]}],
        'text': text,
        'uri': uri,
    }
    return a

def get_token_params(app, username):
    token = app.hypothesis_client.grant_token(username=username)
    params = {
        'assertion': token.decode(),
        'grant_type': 'urn:ietf:params:oauth:grant-type:jwt-bearer',
    }
    return params
