10BC0 squash! Review comments · jchampio/postgres@05985da · GitHub
[go: up one dir, main page]

Skip to content

Commit 05985da

Browse files
committed
squash! Review comments
1 parent 2c00779 commit 05985da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/libpq/auth-oauth.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ generate_error_response(struct oauth_ctx *ctx, char **output, int *outputlen)
511511
initStringInfo(&buf);
512512

513513
/*
514+
* TODO
514515
* Escaping the string here is belt-and-suspenders defensive programming
515516
* since escapable characters aren't valid in either the issuer URI or the
516517
* scope list, but the HBA doesn't enforce that yet.
@@ -699,6 +700,7 @@ validate(Port *port, const char *auth)
699700
/* Make sure the validator authenticated the user. */
700701
if (ret->authn_id == NULL || ret->authn_id[0] == '\0')
701702
{
703+
/* TODO: test logdetail; reduce message duplication elsewhere */
702704
ereport(LOG,
703705
errmsg("OAuth bearer authentication failed for user \"%s\"",
704706
port->user_name),

0 commit comments

Comments
 (0)
0