@RequestMapping(value="/api/authn") @RestController public class AuthenticationRestController extends Object implements org.springframework.beans.factory.InitializingBean
WebSecurityConfiguration| Constructor and Description |
|---|
AuthenticationRestController() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
AuthnResource |
authn() |
protected org.springframework.http.ResponseEntity |
getLoginResponse(javax.servlet.http.HttpServletRequest request,
String failedMessage) |
org.springframework.http.ResponseEntity |
login() |
org.springframework.http.ResponseEntity |
login(javax.servlet.http.HttpServletRequest request,
String user,
String password) |
org.springframework.http.ResponseEntity |
logout() |
AuthenticationStatusResource |
status(javax.servlet.http.HttpServletRequest request) |
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean@RequestMapping(method=GET) public AuthnResource authn() throws SQLException
SQLException@RequestMapping(value="/status",
method=GET)
public AuthenticationStatusResource status(javax.servlet.http.HttpServletRequest request)
throws SQLException
SQLException@RequestMapping(value="/login",
method=POST)
public org.springframework.http.ResponseEntity login(javax.servlet.http.HttpServletRequest request,
@RequestParam(name="user",required=false)
String user,
@RequestParam(name="password",required=false)
String password)
@RequestMapping(value="/login",
method={GET,PUT,PATCH,DELETE})
public org.springframework.http.ResponseEntity login()
@RequestMapping(value="/logout",
method={GET,POST})
public org.springframework.http.ResponseEntity logout()
protected org.springframework.http.ResponseEntity getLoginResponse(javax.servlet.http.HttpServletRequest request,
String failedMessage)
Copyright © 2019 DuraSpace. All rights reserved.