com.racquettrack.security.oauth.OAuth2WebAuthenticationDetailsSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-security-oauth2-client Show documentation
Show all versions of spring-security-oauth2-client Show documentation
An OAuth2 Client implementation for web applications using Spring Security
The newest version!
package com.racquettrack.security.oauth;
import org.springframework.security.authentication.AuthenticationDetailsSource;
import org.springframework.security.web.authentication.WebAuthenticationDetails;
import javax.servlet.http.HttpServletRequest;
/**
* Implementation of {@link AuthenticationDetailsSource} which builds the details object from
* an HttpServletRequest object, creating a {@code OAuth2WebAuthenticationDetails}.
*
* Based on the default {@link org.springframework.security.web.authentication.WebAuthenticationDetails}.
*
* @author paulwheeler
*/
public class OAuth2WebAuthenticationDetailsSource implements AuthenticationDetailsSource {
/**
* @param context the {@code HttpServletRequest} object.
* @return the {@code WebAuthenticationDetails} containing information about the current request
*/
public OAuth2WebAuthenticationDetails buildDetails(HttpServletRequest context) {
return new OAuth2WebAuthenticationDetails(context);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy