def METHOD_NAME(self):
    self.dash = db.session.query(Dashboard).filter_by(slug="births").first()
    self.embedded = EmbeddedDashboardDAO.upsert(self.dash, [])
    self.login(username="admin")
    user = {"username": "bob", "first_name": "Bob", "last_name": "Also Bob"}
    resource = {"type": "dashboard", "id": str(self.embedded.uuid)}
    rls_rule = {"dataset": 1, "clause": "1=1"}
    params = {"user": user, "resources": [resource], "rls": [rls_rule]}
    response = self.client.post(
        self.uri, data=json.dumps(params), content_type="application/json"
    )
    self.assert200(response)
    token = json.loads(response.data)["token"]
    decoded_token = jwt.decode(
        token,
        self.app.config["GUEST_TOKEN_JWT_SECRET"],
        audience=get_url_host(),
        algorithms=["HS256"],
    )
    self.assertEqual(user, decoded_token["user"])
    self.assertEqual(resource, decoded_token["resources"][0])