monkeyDluffy6017 commented on code in PR #10493:
URL: https://github.com/apache/apisix/pull/10493#discussion_r1399986036
##########
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
+ scopes[scope] = true
+ end
+ return scopes
+end
+
+-- Function to check if all required scopes are present
Review Comment:
Two blanks are needed between functions
--
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]