Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/connector/roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ func (o *roleBuilder) Grants(
grants = append(grants, nextGrant)
}

bag.Pop()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nextToken, err := bag.NextToken(client.GetNextToken(page, limit, total))
		if err != nil {
			return nil, "", nil, err
		}

I saw this one. Do we need to get the next page from the o.client.GetRolePermissions

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

nextToken, err := bag.Marshal()
if err != nil {
return nil, "", nil, err
Expand Down
Loading