Code Monkey home page Code Monkey logo

generator-jhipster-basic-auth's People

Contributors

cbornet avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

generator-jhipster-basic-auth's Issues

Unable to access api's using basic auth module

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:

http://localhost:8081/api_basic/items

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

http://localhost:8080/api_basic/items
I get

{
  "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!

error with jhipster 6.1.2 : .... missing “jhipster:modules”

there is problem running module to fresh jhipster project (see my .yo-rc.json below ) without entities.

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"]
}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.