@ConfigurationProperties(prefix="hsweb.auth") public class EmbedAuthenticationProperties extends Object implements org.springframework.beans.factory.InitializingBean
hsweb:
auth:
users:
admin:
name: 超级管理员
username: admin
password: admin
roles:
- id: admin
name: 管理员
- id: user
name: 用户
permissions:
- id: user-manager
actions: *
dataAccesses:
- action: query
type: DENY_FIELDS
fields: password,salt
| 构造器和说明 |
|---|
EmbedAuthenticationProperties() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
Authentication |
authenticate(AuthenticationRequest request) |
Optional<Authentication> |
getAuthentication(String userId) |
public void afterPropertiesSet()
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanpublic Authentication authenticate(AuthenticationRequest request)
public Optional<Authentication> getAuthentication(String userId)
Copyright © 2016–2020. All rights reserved.