-
Notifications
You must be signed in to change notification settings - Fork 1
[BB-1013] fix pagination for scope #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,5 +88,5 @@ func scopeResource(resourceServer client.ResourceServerScope, server *client.Res | |
| } | ||
|
|
||
| func formatScopeId(resourceServer client.ResourceServerScope, server *client.ResourceServer) string { | ||
| return fmt.Sprintf("%s/%s", server.Identifier, resourceServer.Value) | ||
| return fmt.Sprintf("%s:%s", server.Identifier, resourceServer.Value) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainVerify scope ID format change impact across the codebase. Changing the separator from Run the following script to verify consistency and identify potential impacts: 🏁 Script executed: #!/bin/bash
# Description: Search for scope ID construction, parsing, and usage patterns
echo "=== Searching for scope ID construction patterns ==="
# Look for other places that might construct scope IDs with slash
rg -n "Identifier.*/" --type go -C 3
echo -e "\n=== Searching for scope ID parsing or splitting ==="
# Look for code that might parse scope IDs expecting slash separator
rg -n 'strings\.Split.*"/"' --type go -C 3
rg -n 'strings\.Contains.*"/"' --type go -C 3
echo -e "\n=== Searching for formatScopeId usage ==="
# Find all usages of formatScopeId
rg -n "formatScopeId" --type go -C 5
echo -e "\n=== Searching for scopeResourceType usage ==="
# Find how scope resource types are used in grants/entitlements
rg -n "scopeResourceType" --type go -C 3
echo -e "\n=== Searching for scope-related comments ==="
# Find comments that might reference the old format
rg -n "scope.*/" --type go -C 2Length of output: 7354 Update outdated comment about scope ID format. The change to Change the comment from: To: The search found no other code constructing scope IDs with 🤖 Prompt for AI Agents |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw this one. Do we need to get the next page from the
o.client.GetRolePermissionsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://auth0.com/docs/api/management/v2/roles/get-role-permission doesn't say it supports pagination like the other endpoint