You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: proxy/service.go
+49-3Lines changed: 49 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,13 @@ type Service struct {
103
103
// /package_name.ServiceName/MethodName
104
104
AuthWhitelistPaths []string`long:"authwhitelistpaths" description:"List of regular expressions for paths that don't require authentication'"`
105
105
106
+
// AuthSkipInvoiceCreationPaths is an optional list of regular
107
+
// expressions that are matched against the path of the URL of a
108
+
// request. If the request URL matches any of those regular
109
+
// expressions, the call will not try to create an invoice for the
110
+
// request, but still try to do the l402 authentication.
111
+
AuthSkipInvoiceCreationPaths []string`long:"authskipinvoicecreationpaths" description:"List of regular expressions for paths that will skip invoice creation'"`
112
+
106
113
// compiledHostRegexp is the compiled host regex.
107
114
compiledHostRegexp*regexp.Regexp
108
115
@@ -112,6 +119,10 @@ type Service struct {
112
119
// compiledAuthWhitelistPaths is the compiled auth whitelist paths.
113
120
compiledAuthWhitelistPaths []*regexp.Regexp
114
121
122
+
// compiledAuthSkipInvoiceCreationPaths is the compiled auth skip
0 commit comments