Skip to content

Commit

Permalink
Fix scope issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishanx92 committed Feb 6, 2025
1 parent 7c29300 commit c5fd883
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gateway/enforcer/internal/transformer/jwtTransformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package transformer

import (
"fmt"
"strings"

"github.com/wso2/apk/gateway/enforcer/internal/datastore"
"github.com/wso2/apk/gateway/enforcer/internal/dto"
Expand Down Expand Up @@ -58,7 +59,7 @@ func (transformer *JWTTransformer) TransformJWTClaims(organization string, exter
fmt.Printf("Remote scopes: %v\n", remoteScopes)
switch remoteScopes := remoteScopes.(type) {
case string:
scopes := []string{remoteScopes}
scopes := strings.Split(remoteScopes, " ")
jwtValidationInfo.Scopes = scopes
case []string:
scopes := remoteScopes
Expand Down

0 comments on commit c5fd883

Please sign in to comment.