labs64 / netlicensing-demo Goto Github PK
View Code? Open in Web Editor NEWLabs64 NetLicensing / Demo Application
Home Page: https://netlicensing.io
License: MIT License
Labs64 NetLicensing / Demo Application
Home Page: https://netlicensing.io
License: MIT License
Create Token and Validate calls supporting authentication via APIKey.
This auth method needs to be used for above functions; all others (CRUD) can still use Basic Auth
"successURLTitle" and "cancelURLTitle" need to be set to "Labs64 NetLicensing Demo" (APP_NAME)
NLIC URL, username, password, APIKey need to be configured via .env
file. This will provide initial configuration. So NetLicensing Agent (base URL) can be easily used with NLIC Demo.
... instead of lorem ipsum
Working with docker-compose.
When trying to access localhost:80 getting error:
[23-Feb-2020 10:04:58] WARNING: [pool www] child 10 said into stderr: "NOTICE: PHP message: PHP Fatal error: require(): Failed opening required '/var/www/netlicensing-demo/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/netlicensing-demo/autoload.php on line 17"
docker-compose file maps repo's root to /var/www/netlicensing-demo
According to autoload.php on line 17: require __DIR__.'/../vendor/autoload.php';
But there is no vendor/autoload.php
in git's root.
Useful Links section in NetLicensing Demo need an icon, indicating new tab as a target
Links:
E.g.
http://icons.iconarchive.com/icons/icons8/windows-8/128/Programming-External-Link-icon.png
https://cdn2.iconfinder.com/data/icons/fanaticons/100/Duplicate_Add_Mono-128.png
Following error logged in log while executing command php artisan key:generate
PHP Fatal error: Uncaught ReflectionException: Class mailer does not exist in /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Container/Container.php:729
Stack trace:
#0 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('mailer')
#1 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\Container\Container->build('mailer')
#2 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Container/Container.php(575): Illuminate\Container\Container->resolve('mailer')
#3 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(728): Illuminate\Container\Container->make('mailer')
#4 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Container/Container.php(1172): Illuminate\Foundation\Application->make('mailer')
#5 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(159): Illuminate\Con in /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729
[2017-06-04 18:34:11] local.ERROR: InvalidArgumentException: Please provide a valid cache path. in /var/www/netlicensing-demo/vendor/laravel
/framework/src/Illuminate/View/Compilers/Compiler.php:36
Stack trace:
#0 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php(128): Illuminate\View\Compilers\Compiler-
>__construct(Object(Illuminate\Filesystem\Filesystem), false)
#1 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Container/Container.php(726): Illuminate\View\ViewServiceProvider->Ill
uminate\View\{closure}(Object(Illuminate\Foundation\Application), Array)
#2 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\Container\Container->build(Ob
ject(Closure))
#3 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Container/Container.php(575): Illuminate\Container\Container->resolve(
'blade.compiler')
#4 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(728): Illuminate\Container\Container->make(
'blade.compiler')
#5 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Container/Container.php(1172): Illuminate\Foundation\Application->make
('blade.compiler')
#6 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php(133): Illuminate\Container\Container->off
setGet('blade.compiler')
#7 [internal function]: Illuminate\View\ViewServiceProvider->Illuminate\View\{closure}()
#8 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/View/Engines/EngineResolver.php(54): call_user_func(Object(Closure))
#9 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Support/Facades/Blade.php(17): Illuminate\View\Engines\EngineResolver->resolve('blade')
#10 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(128): Illuminate\Support\Facades\Blade::getFacadeAccessor()
#11 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(215): Illuminate\Support\Facades\Facade::getFacadeRoot()
#12 /var/www/netlicensing-demo/app/Providers/ToJsServiceProvider.php(38): Illuminate\Support\Facades\Facade::__callStatic('directive', Array)
#13 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(574): App\Providers\ToJsServiceProvider->register()
#14 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(75): Illuminate\Foundation\Application->register(Object(App\Providers\ToJsServiceProvider))
#15 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(549): Illuminate\Foundation\ProviderRepository->load(Array)
#16 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\Foundation\Application->registerConfiguredProviders()
#17 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(208): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Illuminate\Foundation\Application))
#18 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(160): Illuminate\Foundation\Application->bootstrapWith(Array)
#19 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->bootstrap()
#20 /var/www/netlicensing-demo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#21 /var/www/netlicensing-demo/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#22 {main}
... default cache path should be defined via .env
Known vulnerability found
CVE-2018-14041 Moderate severity
In Bootstrap before 4.1.2, XSS is possible in the data-target property of scrollspy. This is similar to CVE-2018-14042.
package.json update suggested:
bootstrap ~> 4.1.2
Vulnerable versions: <= 0.18.0
Patched version: No fix
Axios up to and including 0.18.0 allows attackers to cause a denial of service (application crash) by continuing to accepting content after maxContentLength is exceeded.
NetLicensing Demo cannot be used with NetLicensing Agent at the moment.
No error messages are shown to the user as well.
# export demo assets
$ java -jar netlicensing-agent-2.3.7-ALPHA1.jar --action=export-assets --username=demo --password=demo
# import assets locally
$ java -jar netlicensing-agent-2.3.7-ALPHA1.jar --action=import-assets
# start NetLicensing Agent
$ java -jar netlicensing-agent-2.3.7-ALPHA1.jar --action=run-agent-offline --agent.port=8888
.env
properties to point to local running NetLicensing Agent# NetLicensing configuration
NLIC_AGENT_BASE_URL=http://localhost:8888/rest
Hi,
I tried to start the application with "docker-compose up -d", however, I got the following error:
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
---> Package php71w-pecl-imagick.x86_64 0:3.4.3-1.w7 will be installed
--> Processing Dependency: libMagickWand.so.5()(64bit) for package: php71w-pecl-imagick-3.4.3-1.w7.x86_64
--> Processing Dependency: libMagickCore.so.5()(64bit) for package: php71w-pecl-imagick-3.4.3-1.w7.x86_64
--> Finished Dependency Resolution
Error: Package: php71w-pecl-imagick-3.4.3-1.w7.x86_64 (webtatic)
Requires: libMagickWand.so.5()(64bit)
Error: Package: php71w-pecl-imagick-3.4.3-1.w7.x86_64 (webtatic)
Requires: libMagickCore.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
ERROR: Service 'netlicensing-demo' failed to build: The command '/bin/sh -c yum -y install php71w php71w-bcmath php71w-cli php71w-common php71w-curl php71w-fpm php71w-gd php71w-ldap php71w-imap php71w-intl php71w-mbstring php71w-mcrypt php71w-mysqlnd php71w-opcache php71w-pdo php71w-pear php71w-pecl-apcu php71w-pecl-imagick php71w-pgsql php71w-process php71w-pspell php71w-recode php71w-soap php71w-tidy php71w-xml' returned a non-zero code: 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.