File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,31 +79,11 @@ func (*JWTStruct) GetAllowedEngines(featureFlagsWrapper FeatureFlagsWrapper) (al
7979
8080// GetLicenseDetails will return all license information from AstLicense.LicenseData.AllowedEngines
8181func (* JWTStruct ) GetLicenseDetails (featureFlagsWrapper FeatureFlagsWrapper ) (licenseDetails map [string ]string , err error ) {
82- //flagResponse, _ := GetSpecificFeatureFlag(featureFlagsWrapper, PackageEnforcementEnabled)
8382
8483 licenseDetails = make (map [string ]string )
8584
8685 // Add scan.config.plugins.standalone as true
8786 licenseDetails ["scan.config.plugins.standalone" ] = "true"
88-
89- // if flagResponse.Status {
90- // jwtStruct, err := getJwtStruct()
91- // if err != nil {
92- // return licenseDetails, nil // Return what we have so far if JWT validation fails
93- // }
94-
95- // // Return all engines from license data as true (they are allowed engines)
96- // if jwtStruct.AstLicense.LicenseData.AllowedEngines != nil {
97- // for _, engine := range jwtStruct.AstLicense.LicenseData.AllowedEngines {
98- // if engine != "" {
99- // licenseDetails[engine] = "true"
100- // }
101- // }
102- // }
103-
104- // return licenseDetails, nil
105- // }
106-
10787 return licenseDetails , nil
10888}
10989
You can’t perform that action at this time.
0 commit comments