Skip to content

Commit 6238f74

Browse files
[BB-1013] fix pagination for scope (#33)
* fix pagination for scope * fix wrong scope id --------- Co-authored-by: Alejandro Bernal <jbernalxyz@gmail.com>
1 parent 1e06cf4 commit 6238f74

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/connector/roles.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ func (o *roleBuilder) Grants(
252252
grants = append(grants, nextGrant)
253253
}
254254

255+
bag.Pop()
255256
nextToken, err := bag.Marshal()
256257
if err != nil {
257258
return nil, "", nil, err

pkg/connector/scopes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ func scopeResource(resourceServer client.ResourceServerScope, server *client.Res
8888
}
8989

9090
func formatScopeId(resourceServer client.ResourceServerScope, server *client.ResourceServer) string {
91-
return fmt.Sprintf("%s/%s", server.Identifier, resourceServer.Value)
91+
return fmt.Sprintf("%s:%s", server.Identifier, resourceServer.Value)
9292
}

0 commit comments

Comments
 (0)