monkeyDluffy6017 commented on code in PR #10493:
URL: https://github.com/apache/apisix/pull/10493#discussion_r1399985810


##########
apisix/plugins/openid-connect.lua:
##########
@@ -319,6 +328,24 @@ local function add_access_token_header(ctx, conf, token)
     end
 end
 
+-- Function to split the scope string into a table
+local function split_scopes_by_space(scope_string)
+    local scopes = {}
+    for scope in string.gmatch(scope_string, "%S+") do

Review Comment:
   Why not use 
[ngx.re.split](https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/re.md)
 ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to