Skip to content

Commit

Permalink
Merge branch 'main' into mchavez-fix-goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
mchavez committed Jul 10, 2024
2 parents e3f690e + aac2440 commit 5d81d83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pkg/connector/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,12 @@ func appEntitlement(ctx context.Context, resource *v2.Resource, permission strin
return &v2.Entitlement{
Id: fmtResourceRole(resource.Id, permission),
Resource: resource,
DisplayName: fmt.Sprintf("%s app access", resource.DisplayName),
Description: fmt.Sprintf("Has access to the %s app in Okta", resource.DisplayName),
DisplayName: fmt.Sprintf("%s App %s", resource.DisplayName, permission),
Description: fmt.Sprintf("Can %s on Okta app %s", permission, resource.DisplayName),
Annotations: annos,
GrantableTo: []*v2.ResourceType{resourceTypeGroup, resourceTypeUser},
Purpose: v2.Entitlement_PURPOSE_VALUE_ASSIGNMENT,
Slug: resource.DisplayName,
Slug: fmt.Sprintf("%s - %s", resource.DisplayName, permission),
}
}

Expand Down
6 changes: 3 additions & 3 deletions pkg/connector/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ func (o *groupResourceType) groupEntitlement(ctx context.Context, resource *v2.R
return &v2.Entitlement{
Id: fmtResourceRole(resource.Id, permission),
Resource: resource,
DisplayName: fmt.Sprintf("%s Group Member", resource.DisplayName),
Description: fmt.Sprintf("Member of %s group in Okta", resource.DisplayName),
DisplayName: fmt.Sprintf("%s Group %s", resource.DisplayName, permission),
Description: fmt.Sprintf("%s in Okta group %s", permission, resource.DisplayName),
Annotations: annos,
GrantableTo: []*v2.ResourceType{resourceTypeUser},
Purpose: v2.Entitlement_PURPOSE_VALUE_ASSIGNMENT,
Slug: resource.DisplayName,
Slug: fmt.Sprintf("%s - %s", resource.DisplayName, permission),
}
}

Expand Down

0 comments on commit 5d81d83

Please sign in to comment.