authentication - Grails Micro Service外部化身份验证

标签 authentication grails spring-security microservices

我有一个由以下两个应用组成的多项目:

1) App 1 (profile web)

2) App 2 (profile rest) + spring-securyty-core-plugin + Spring Security REST plugin



App 1是App2的“其余客户”。
现在,我还将在应用程序2中安装spring-securyty-core-plugin。

现在的问题是:是否可以在App 1中外部化授权过程而无需在App 1中创建User and Role域类?
应用1将使用应用2进行用户处理。

最佳答案

据我所知,您不需要在App 1中镜像用户和角色域,因为您的App2 + Spring Security REST插件默认将使用JWT。

您要做的就是将 token 保存到App1中,并在每次向App2发送请求时将其发送到 header 中。

关于authentication - Grails Micro Service外部化身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35862481/

相关文章:

authentication - 在单页Clojure Web应用程序中使用Friend进行身份验证和授权

node.js - 使用nodejs和mongodb快速构建Web应用程序原型(prototype)教程,代码问题?

java - Grails 映射基本集合类型

grails - 尊重过滤网

Grails 脚手架 - 在 Controller 操作中定义 exceptedProperties?

ajax - Spring Security 3-Ajax注销

spring - 创建帐户,忘记密码和更改密码

c# - Azure Active Directory 可以用作登录代理吗?

java - 当 url 包含字符串 "?error "时,WebSphere 不显示网页元素

java - 使用 spring session ID cookie 进行单点登录?