这个jdl有用吗?我在网关和微服务中使用authenticationType会话。
application {
config {
enableTranslation true
applicationType gateway
serviceDiscoveryType consul
languages [en, hi, te]
nativeLanguage en
packageName in.beze.pc
testFrameworks [gatling, cucumber, protractor]
websocket spring-websocket
baseName pc
serverPort 8080
jhiPrefix sys
prodDatabaseType postgresql
devDatabaseType postgresql
databaseType sql
cacheProvider ehcache
enableHibernateCache true
authenticationType session
buildTool gradle
clientPackageManager npm
clientFramework angularX
}
entities *
}
application {
config {
baseName masters
applicationType microservice
packageName in.beze.masters
serviceDiscoveryType consul
authenticationType session
prodDatabaseType postgresql
devDatabaseType postgresql
databaseType sql
buildTool gradle
serverPort 8081
skipUserManagement true
cacheProvider ehcache
enableHibernateCache true
websocket spring-websocket
}
entities Attachment, ContentType, Equipment, EquipmentType, FacilityType, FacilityGroupType, FacilityGroup, Facility, FacilityHistory, FacilityUser, FacilityAttachment, FacilityEquipment, FrequencyType, Frequency, Gender, JobSandbox, Language, Party, Permission, PermissionAuthority, ProductStoreType, ProductStore, ProductStoreFacility, ProductStoreUserGroup, Responsibility, RoleType, Scheduler, StatusCategory, Status, StatusValidChange, UserRole, UserGroup, UserGroupAuthority, UserGroupMember, Uom, UomType, UserAttachment, SystemParameters, QRCode, QRCodeType, QRCodeAttachment, Product, ProductType, ProductCategoryType, ProductCategory, ProductCategoryMember, Stage, ProductSpecGroup, ProductSpec, ProductSpecItem, StabilityCondition, StabilityConditionAttachment
}
应用程序{ 配置{ 基名稳定性 应用程序类型微服务 包名 in.beze.stability serviceDiscoveryType 领事 身份验证类型 jwt prodDatabaseType postgresql devDatabaseType postgresql 数据库类型sql 构建工具gradle 服务器端口 8082 跳过用户管理 true 缓存提供者ehcache 启用HibernateCache true websocket 弹簧 websocket } 实体 StAttachment、StContentType、AnalysisType、SpEquipment、SsEquipment、SpProductSpec、StabilityProgramme、StabilityAttachment、SampleType、StabilitySample、SampleResult、SampleAttachment、SampleResultAttachment、EquipmentSc }
请注意,我在所有微服务和网关中使用会话。每个用户一次登录生成微服务的正确方法是吗?
不。 JHipster 不支持微服务基于会话的身份验证。由于其分布式特性,微服务仅支持 JWT 和 OAuth。
您希望通过基于会话的身份验证实现什么目标?