We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77705fc commit 2699377Copy full SHA for 2699377
src/flb_oauth2.c
@@ -124,7 +124,7 @@ static void oauth2_reset_state(struct flb_oauth2 *ctx)
124
125
static void oauth2_apply_defaults(struct flb_oauth2_config *cfg)
126
{
127
- cfg->enabled = FLB_TRUE;
+ cfg->enabled = FLB_FALSE;
128
cfg->auth_method = FLB_OAUTH2_AUTH_METHOD_BASIC;
129
cfg->refresh_skew = FLB_OAUTH2_DEFAULT_SKEW_SECS;
130
cfg->timeout = 0;
@@ -903,6 +903,10 @@ struct mk_list *flb_oauth2_get_config_map(struct flb_config *config)
903
struct mk_list *config_map;
904
905
config_map = flb_config_map_create(config, oauth2_config_map);
906
+ if (!config_map) {
907
+ flb_error("[oauth2] error loading OAuth2 config map");
908
+ return NULL;
909
+ }
910
911
return config_map;
912
}
0 commit comments