@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
| Constructor and Description |
|---|
EmbedAuthenticationProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Authentication |
authenticate(AuthenticationRequest request) |
Optional<Authentication> |
getAuthentication(String userId) |
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic Authentication authenticate(AuthenticationRequest request)
public Optional<Authentication> getAuthentication(String userId)
Copyright © 2016–2021. All rights reserved.