kernel-4.6.x
Amalka Subasinghe 3 years ago
parent a418fe5d0d
commit bdb01a0098

@ -240,7 +240,7 @@ public class AnnotationProcessor {
subCtx = makeContextURLReady(resourceRootContext) + makeContextURLReady(subCtx); subCtx = makeContextURLReady(resourceRootContext) + makeContextURLReady(subCtx);
} }
permission.setUrl(replaceDynamicPathVariables(subCtx)); permission.setUrl(replaceDynamicPathVariables(subCtx));
permission.setUrlPattern(permission.getUrl().replace("*", "[a-zA-Z0-9-_]+")); permission.setUrlPattern(permission.getUrl().replace("*", "[a-zA-Z0-9-_.]+"));
String httpMethod; String httpMethod;
for (int i = 0; i < annotations.length; i++) { for (int i = 0; i < annotations.length; i++) {
httpMethod = getHTTPMethodAnnotation(annotations[i]); httpMethod = getHTTPMethodAnnotation(annotations[i]);

@ -17,13 +17,13 @@
# #
#issuer of the JWT #issuer of the JWT
iss=wso2.org/products/iot iss=https://localhost:9443/oauth2/token
TokenEndpoint=https://${iot.gateway.host}:${iot.gateway.https.port}/token?tenantDomain=carbon.super TokenEndpoint=https://${iot.gateway.host}:${iot.gateway.https.port}/token?tenantDomain=carbon.super
#audience of JWT claim #audience of JWT claim
#comma seperated values #comma seperated values
aud=devicemgt aud=https://localhost:9443/oauth2/token
#expiration time of JWT (number of minutes from the current time) #expiration time of JWT (number of minutes from the current time)
exp=1000 exp=1000

Loading…
Cancel
Save