cbornet / generator-jhipster-basic-auth Goto Github PK
View Code? Open in Web Editor NEWJHipster module to add stateless basic authentication support
License: Other
JHipster module to add stateless basic authentication support
License: Other
Hi Christophe
I have generated this module in Jhipster 3.12.2 for micro services application. I am trying to access my end points from postman with admin, admin username and password and I am getting 401 unauthorized.
My requirement is to use basic auth for the api's that are being exposed to the clients.
sample endpoint:
Error message:
{
"timestamp": "2017-01-03T16:47:24.478+0000",
"status": 401,
"error": "Unauthorized",
"message": "Bad credentials",
"path": "/api_basic/items"
}
When I tried this endpoint
{
"timestamp": "2017-01-03T16:54:01.050+0000",
"status": 404,
"error": "Not Found",
"message": "Not Found",
"path": "/api_basic/items"
}
Do I have to do any additional configurations after generating the module?
Thanks!
yo jhipster-basic-auth
Error jhipster-basic-auth
You don't seem to have a generator with the name “jhipster:modules” installed.
But help is on the way:
You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/.
Install them with npm install generator-jhipster:modules.
To see all your installed generators run yo without any arguments. Adding the --help op
tion will also show subgenerators.
If yo cannot find the generator, run yo doctor to troubleshoot your system.
---------- my .yo-rc.json -----
cat .yo-rc.json
{
"generator-jhipster": {
"promptValues": {
"packageName": "si",
"nativeLanguage": "sk"
},
"jhipsterVersion": "6.1.2",
"applicationType": "monolith",
"baseName": "sign",
"packageName": "si",
"packageFolder": "si",
"serverPort": "8080",
"authenticationType": "oauth2",
"cacheProvider": "ehcache",
"enableHibernateCache": true,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "postgresql",
"prodDatabaseType": "postgresql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSwaggerCodegen": false,
"useSass": true,
"clientPackageManager": "npm",
"clientFramework": "react",
"clientTheme": "flatly",
"clientThemeVariant": "primary",
"testFrameworks": [],
"jhiPrefix": "jhi",
"entitySuffix": "",
"dtoSuffix": "DTO",
"otherModules": [],
"enableTranslation": true,
"nativeLanguage": "sk",
"languages": ["sk"]
}
}
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.