From 96007df3392f1af1e054cdd72d55985bfc391b0a Mon Sep 17 00:00:00 2001 From: rathnapandi Date: Thu, 21 Nov 2024 21:55:18 -0700 Subject: [PATCH] Enhance template creation to include api methods and inbound per method override --- .../src/main/java/com/axway/apim/config/GenerateTemplate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java b/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java index c2bf2108..d80716b7 100644 --- a/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java +++ b/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java @@ -345,10 +345,10 @@ public SecurityProfile createPassThroughSecurityProfile() { public SecurityProfile createOauthSecurityProfile(String operationId, List scopes) { SecurityProfile profile = new SecurityProfile(); - profile.setName("Oauth2"); + profile.setName("Oauth2 " + operationId); profile.setIsDefault(false); SecurityDevice securityDevice = new SecurityDevice(); - securityDevice.setName("Oauth2 " + operationId); + securityDevice.setName("Oauth2"); securityDevice.setType(DeviceType.oauth); securityDevice.setOrder(0); Map properties = new HashMap<>();