/* Copyright (c) 2017-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "str.h"
#include "ioloop.h"
#include "istream.h"
#include "strnum.h"
#include "http-client.h"
#include "http-url.h"
#include "json-parser.h"
#include "oauth2.h"
#include "oauth2-private.h"
static void
struct oauth2_token_validation_result *res)
{
}
static void
const char *error)
{
/* see if we can figure out when it expires */
} else {
}
break;
}
}
}
}
static void
struct oauth2_request *req)
{
} else {
if (status_1 == 2)
else
/* 2xx is sufficient for token validation */
return;
}
}
}
{
};
}
struct oauth2_request*
const struct oauth2_request_input *input,
void *context)
{
const char *error;
return req;
}
req);
else
"Authorization",
t_strdup_printf("Bearer %s",
return req;
}