#ifndef DB_OAUTH2_H
struct db_oauth2;
struct oauth2_request;
struct db_oauth2_request;
enum passdb_result result,
const char *error,
void *context);
struct db_oauth2_request {
/* username to match */
const char *username;
/* token to use */
const char *token;
void *context;
};
void db_oauth2_ref(struct db_oauth2 *);
void db_oauth2_unref(struct db_oauth2 **);
void db_oauth2_lookup(struct db_oauth2 *db, struct db_oauth2_request *req, const char *token, struct auth_request *request, db_oauth2_lookup_callback_t *callback, void *context);
CALLBACK_TYPECHECK(callback, void(*)(struct db_oauth2_request *, enum passdb_result, const char*, typeof(context))), \
#endif