Class AuthnHttpEndpoint
java.lang.Object
io.github.xezzon.zeroweb.auth.internal.AuthnHttpEndpoint
认证管理
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionAuthnHttpEndpoint
(AuthnService authnService, io.github.xezzon.zeroweb.common.config.ZerowebConfig zerowebConfig) -
Method Summary
Modifier and TypeMethodDescriptionbasicLogin
(BasicAuth basicAuth) 用户名口令认证getSsoToken
(jakarta.servlet.http.HttpServletResponse response) org.springframework.http.ResponseEntity<byte[]>
self()
-
Constructor Details
-
AuthnHttpEndpoint
public AuthnHttpEndpoint(AuthnService authnService, io.github.xezzon.zeroweb.common.config.ZerowebConfig zerowebConfig)
-
-
Method Details
-
basicLogin
用户名口令认证- Parameters:
basicAuth
- 用户名、口令- Returns:
- 令牌(即 Session ID)
-
self
@GetMapping("/self") public org.springframework.http.ResponseEntity<byte[]> self() throws com.google.protobuf.InvalidProtocolBufferException- Returns:
- 当前用户的认证信息
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
getSsoToken
@GetMapping("/token") public OidcToken getSsoToken(jakarta.servlet.http.HttpServletResponse response) - Returns:
- 用户令牌
-