Skip to content

Commit

Permalink
auth: Make sure tokeninfo or introspection URL is given
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse committed Feb 21, 2017
1 parent 6a98605 commit 54cad0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/auth/db-oauth2.c
Expand Up @@ -202,6 +202,9 @@ struct db_oauth2 *db_oauth2_init(const char *config_path)
http_set.dns_client_socket_path = "dns-client";
http_set.user_agent = "dovecot-oauth2-passdb/" DOVECOT_VERSION;

if (*db->set.tokeninfo_url == '\0' && *db->set.introspection_url == '\0')
i_fatal("oauth2: Tokeninfo or introspection URL must be given");

if (*db->set.rawlog_dir != '\0')
http_set.rawlog_dir = db->set.rawlog_dir;

Expand Down

0 comments on commit 54cad0e

Please sign in to comment.