services/application-services/product-service/src/main/java/com/amazonaws/saas/eks/auth/TokenManager.java [35:54]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	public String getTenantId(HttpServletRequest request) throws Exception {
		String idToken = request.getHeader(this.jwtConfiguration.getHttpHeader());

		if (idToken != null) {
			SignedJWT signedJWT = null;

			try {
			    signedJWT = SignedJWT.parse(this.getBearerToken(idToken));
			} catch (java.text.ParseException e) {
			    logger.error(e);
			}

			JWTClaimsSet claimsSet = signedJWT.getJWTClaimsSet();			
			String tenantId = claimsSet.getStringClaim(CUSTOM_TENANT_ID);
			logger.info("tenantId: " + tenantId);

			return tenantId;
		}
		return null;
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



services/application-services/order-service/src/main/java/com/amazonaws/saas/eks/auth/TokenManager.java [37:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	public String getTenantId(HttpServletRequest request) throws Exception {
		String idToken = request.getHeader(this.jwtConfiguration.getHttpHeader());

		if (idToken != null) {
			SignedJWT signedJWT = null;

			try {
			    signedJWT = SignedJWT.parse(this.getBearerToken(idToken));
			} catch (java.text.ParseException e) {
			    logger.error(e);
			}

			JWTClaimsSet claimsSet = signedJWT.getJWTClaimsSet();			
			String tenantId = claimsSet.getStringClaim(CUSTOM_TENANT_ID);
			logger.info("tenantId: " + tenantId);

			return tenantId;
		}
		return null;
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



