diff --git a/nitric/resources/apis.py b/nitric/resources/apis.py index ea40b4b..7a22aa3 100644 --- a/nitric/resources/apis.py +++ b/nitric/resources/apis.py @@ -548,7 +548,7 @@ def __init__(self, name: str, issuer: str, audiences: List[str], scopes: List[st def _oidc_to_resource(b: OidcSecurityDefinition) -> ResourceIdentifier: """Generate a resource identifier for an OIDC security definition.""" - return ResourceIdentifier(name=b.name, type=ResourceType.ApiSecurityDefinition) + return ResourceIdentifier(name=b.rule_name, type=ResourceType.ApiSecurityDefinition) class OidcSecurityDefinition(BaseResource):