Skip to content

Commit

Permalink
fix import for openid authz resources (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
naushadh authored Nov 19, 2022
1 parent 4f33e4e commit 36255bc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ services:
volumes:
# Make the custom-user-federation-example extension available to Keycloak. The :z option is required and tells Docker that the volume content will be shared between containers.
- ./custom-user-federation-example/build/libs/custom-user-federation-example.jar:/opt/jboss/keycloak/standalone/deployments/custom-user-federation-example.jar:z

4 changes: 3 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ GOARCH?=amd64

MAKEFLAGS += --silent

VERSION=$$(git describe --tags)

build:
go build -o terraform-provider-keycloak
CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=$(VERSION)" -o terraform-provider-keycloak_$(VERSION)

build-example: build
mkdir -p example/.terraform/plugins/terraform.local/mrparkers/keycloak/4.0.0/$(GOOS)_$(GOARCH)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func resourceKeycloakOpenidClientAuthorizationPermissionImport(_ context.Context
}
d.Set("realm_id", parts[0])
d.Set("resource_server_id", parts[1])
d.SetId(parts[3])
d.SetId(parts[2])

return []*schema.ResourceData{d}, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func resourceKeycloakOpenidClientAuthorizationResourceImport(_ context.Context,
}
d.Set("realm_id", parts[0])
d.Set("resource_server_id", parts[1])
d.SetId(parts[3])
d.SetId(parts[2])

return []*schema.ResourceData{d}, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func resourceKeycloakOpenidClientAuthorizationScopeImport(_ context.Context, d *
}
d.Set("realm_id", parts[0])
d.Set("resource_server_id", parts[1])
d.SetId(parts[3])
d.SetId(parts[2])

return []*schema.ResourceData{d}, nil
}

0 comments on commit 36255bc

Please sign in to comment.