Skip to content

Commit

Permalink
fix case sensitivity check
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel committed Apr 12, 2024
1 parent 3ce4241 commit efb761e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class OpenPolicyAgentEngine implements Engine<OpenPolicyAgentEngine> {
}

private getCredential(id: string): CredentialEntity | null {
return this.getEntities().credentials.find((cred) => cred.id === id) || null
return this.getEntities().credentials.find((cred) => cred.id.toLowerCase() === id.toLowerCase()) || null
}

private async opaEvaluate(
Expand Down

0 comments on commit efb761e

Please sign in to comment.