-
-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move the timing metrics into the token/userinfo code
so we also measure the 2nd request the use_dpop_nonce cases Signed-off-by: Hans Zandbelt <[email protected]>
- Loading branch information
Showing
3 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
* @Author: Hans Zandbelt - [email protected] | ||
*/ | ||
|
||
#include "metrics.h" | ||
#include "proto/proto.h" | ||
#include "util.h" | ||
|
||
|
@@ -68,6 +69,9 @@ static apr_byte_t oidc_proto_validate_token_type(request_rec *r, oidc_provider_t | |
static apr_byte_t oidc_proto_token_endpoint_call(request_rec *r, oidc_cfg_t *cfg, oidc_provider_t *provider, | ||
apr_table_t *params, const char *basic_auth, const char *bearer_auth, | ||
const char *dpop, char **response, apr_hash_t *response_hdrs) { | ||
|
||
OIDC_METRICS_TIMING_START(r, cfg); | ||
|
||
// oidc_debug(r, "cert=%s, key=%s, pwd=%s", oidc_cfg_provider_token_endpoint_tls_client_cert_get(provider), | ||
// oidc_cfg_provider_token_endpoint_tls_client_key_get(provider), | ||
// oidc_cfg_provider_token_endpoint_tls_client_key_pwd_get(provider)); | ||
|
@@ -82,6 +86,9 @@ static apr_byte_t oidc_proto_token_endpoint_call(request_rec *r, oidc_cfg_t *cfg | |
oidc_cfg_provider_token_endpoint_url_get(provider)); | ||
return FALSE; | ||
} | ||
|
||
OIDC_METRICS_TIMING_ADD(r, cfg, OM_PROVIDER_TOKEN); | ||
|
||
return TRUE; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters