From 0ccaaefba4baf866da34985d7a6cda02a9267fae Mon Sep 17 00:00:00 2001 From: Srijan Saurav <68371686+srijan-deepsource@users.noreply.github.com> Date: Fri, 9 May 2025 14:25:41 +0530 Subject: [PATCH] draft changes for OIDC Signed-off-by: Srijan Saurav <68371686+srijan-deepsource@users.noreply.github.com> --- command/report/dsn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/report/dsn.go b/command/report/dsn.go index dfebcfc0..096a65bd 100644 --- a/command/report/dsn.go +++ b/command/report/dsn.go @@ -14,7 +14,7 @@ type DSN struct { } func NewDSN(raw string) (*DSN, error) { - dsnPattern := regexp.MustCompile(`^(https?)://([^:@]+)@([^:/]+(?:\:\d+)?)`) + dsnPattern := regexp.MustCompile(`(^(https?)://([^:@]+)@([^:/]+(?:\:\d+)?))|(^(OIDC:).+)`) matches := dsnPattern.FindStringSubmatch(raw) if len(matches) != 4 { return nil, ErrInvalidDSN