jhipster

How to call JHipster (Spring) OAuth2 Rest server using Postman Authentication helpers

放肆的年华 提交于 2019-11-29 03:05:28
问题 Postman has Authentication helpers to help with authenticated calls and I'm trying to use the OAuth 2.0 helper to call a REST server created by JHipster using Spring (Security, Social, etc). I've tried a lot of configurations, this is the screen (client ID and Secret were masked): For the Authorization URL I've tried: http://127.0.0.1:8080/oauth/authorize http://127.0.0.1:8080/#/login (the app's login route) The closer I get from receiving a token back to Postman is: I don't know why it's

JHipster authentication using Postman and JWT

我怕爱的太早我们不能终老 提交于 2019-11-29 01:20:01
问题 I'd been using the Postman in-tab extension to tests calls to call JHipster resource API's and found that it worked great (JHipster setup to use OAuth2). I authenticated using the JHipster login page, then opened up a new tab with the Postman extension. I just switched my JHipster application to use JWT and this method of using Postman no longer works, I get permission denied when calling the API. Moreover, the in-tab extension for Postman is being deprecated in favor of the stand-alone app.

JHipster: Registering a user with additional information

…衆ロ難τιáo~ 提交于 2019-11-28 22:08:02
First of all, I'd like to thank " Paul Etienne " for his helpful question and answer ! The answer bellow is a little bit more detailed and has been written considering the last version of JHipster (3/17/2018). The question is clear: how to add new data field(s) to User entity in a JHipster project. As it's mentioned in the official JHipster website, the best way to add new fields/relations to the default JHipster User is creating a new Entity and link it to User with a one-to-one relationship. You may handle more relationships in the new Entity. Let's call this new Entity UserExtra. The UML

Separating jhipster back-end and front-end into two projects?

百般思念 提交于 2019-11-28 20:47:46
I'm trying jhipster with token-based authentication. It works perfectly. Now, I want to run back-end and front-end code on different domains . How can I do this? This is what I tried: Run yo jhipster and select token-based authentication option: Welcome to the JHipster Generator ? (1/13) What is the base name of your application? jhipster ? (2/13) What is your default Java package name? com.mycompany.myapp ? (3/13) Do you want to use Java 8? Yes (use Java 8) ? (4/13) Which *type* of authentication would you like to use? Token-based authentication (stateless, with a token) ? (5/13) Which *type*

How to deploy microservices on Heroku

强颜欢笑 提交于 2019-11-28 19:07:30
问题 I have read a lot about microservices, and would like to build my app with that approach. What I know so far is that I nead some services like: load balancer - to deal with every request, and push it forward to another services authorization service - to authorize my users database - for my microservices. I would like to use one instance of DB with different schemas for every service. service A - for functionality A service B - for functionality B etc. etc. etc. I found out, that Heroku is

How to set the max size of upload file

守給你的承諾、 提交于 2019-11-28 16:58:27
I'm developing application based on Spring Boot and AngularJS using JHipster. My question is how to set max size of uploading files ? If I'm trying to upload to big file I'm getting this information in console: DEBUG 11768 --- [io-8080-exec-10] c.a.app.aop.logging.LoggingAspect: Enter: com.anuglarspring.app.web.rest.errors.ExceptionTranslator.processRuntimeException() with argument[s] = [org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase

Jhipster_cn中文翻译组

我们两清 提交于 2019-11-28 15:01:34
Jhipster快速入门 核心技术栈 (TODO) 这里是列表文本环境设置 安装Jhipster 配置Eclipse/Intellij (TODO) 容器编排 (TODO) Jhipster核心任务 使用Jhipster微服务架构 创建项目 创建entity (TODO) 创建service (TODO) 创建DTOs (TODO) 管理关联关系 (TODO) 国际化 (TODO) 更新项目 (TODO) 可定制模块 给应用程序添加安全机制 使用Elasticsearch (TODO) 使用Websockets (TODO) 使用Oracle (TODO) 使用MongoDB (TODO) 使用Cassandra (TODO) 开发环境 在开发环境中使用Jhipster (TODO) 管理配置文件 (TODO) 使用AngularJS (TODO) 定制Bootstrap (TODO) 测试和Q&A 运行测试 (TODO) 代码质量监测 (TODO) 代持续集成 (TODO) 生产环境 使用在生产环境 (TODO) 指标监测 (TODO) 部署到Cloud Foundry (TODO) 部署到Heroku (TODO) 部署到AWS (TODO) 模块 模块市场 (TODO) 如何创建一个模块 (TODO) 工具 Jhipster实体语言 (TODO)

Can't create custom query method in Spring Data Repository [duplicate]

非 Y 不嫁゛ 提交于 2019-11-28 10:22:09
This question already has an answer here: How to add custom method to Spring Data JPA 11 answers I wanted to create custom repository : public interface FriendRepositoryCustom { Page<Friend> findFriends(FriendCriteria friendCriteria, Pageable pageable); } And its implementation : @Repository @Transactional(readOnly = true) public class FriendRepositoryCustomImpl implements FriendRepositoryCustom { @PersistenceContext EntityManager entityManager; @Override public Page<Friend> findFriends(FriendCriteria friendCriteria, Pageable pageable) { ... } And added it to main repository : @Repository

Spring Security get user info in rest service, for authenticated and not authenticated users

爷,独闯天下 提交于 2019-11-28 10:05:11
I have a spring rest service, I want to use it for authenticated and not authenticated users. And I want to get user information from SecurityContextHolder.getContext().getAuthentication() if user is authenticated. If I use .antMatchers("/app/rest/question/useroperation/list/**").permitAll() in ouath2 configuration like below, then I can get user info for authenticated user, but 401 error for not authenticated users. If I .antMatchers("/app/rest/question/useroperation/list/**").permitAll() and ignore the url in WebSecurity by web.ignoring()..antMatchers("/app/rest/question/useroperation/list/*

Steps to integrate PrimeNG with JHipster

末鹿安然 提交于 2019-11-28 09:15:36
We have been trying to incorporate PrimeNG components into a JHipster (angular 4) generated project with no success. After download and install PrimeNG into our project, we are able to import classes but when we include the corresponding tags into templates nothing is drawn. We have tested several of the PrimeNG components. Also we have done the imports in app.module, etc. I would like to be more concrete, but no error is displayed anywhere. Do you have any hint on how work with PrimeNG and JHipster together? Thanks cjmm The following steps worked for us. 1- Add dependecies with yarn yarn add