本文整理了Java中org.springframework.security.oauth2.provider.endpoint.WhitelabelApprovalEndpoint
类的一些代码示例,展示了WhitelabelApprovalEndpoint
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WhitelabelApprovalEndpoint
类的具体详情如下:
包路径:org.springframework.security.oauth2.provider.endpoint.WhitelabelApprovalEndpoint
类名称:WhitelabelApprovalEndpoint
[英]Controller for displaying the approval page for the authorization server.
[中]用于显示授权服务器的批准页面的控制器。
代码示例来源:origin: spring-projects/spring-security-oauth
@Bean
public WhitelabelApprovalEndpoint oauth2ApprovalEndpoint() {
return new WhitelabelApprovalEndpoint();
}
代码示例来源:origin: spring-projects/spring-security-oauth
@RequestMapping("/oauth/confirm_access")
public ModelAndView getAccessConfirmation(Map<String, Object> model, HttpServletRequest request) throws Exception {
final String approvalContent = createTemplate(model, request);
if (request.getAttribute("_csrf") != null) {
model.put("_csrf", request.getAttribute("_csrf"));
}
View approvalView = new View() {
@Override
public String getContentType() {
return "text/html";
}
@Override
public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) throws Exception {
response.setContentType(getContentType());
response.getWriter().append(approvalContent);
}
};
return new ModelAndView(approvalView, model);
}
代码示例来源:origin: spring-projects/spring-security-oauth
builder.append(createScopes(model, request));
builder.append(authorizeInputTemplate);
} else {
代码示例来源:origin: org.springframework.security.oauth/spring-security-oauth2
builder.append(createScopes(model, request));
builder.append(authorizeInputTemplate);
} else {
代码示例来源:origin: spring-projects/spring-security-oauth
@Bean
public WhitelabelApprovalEndpoint oauth2ApprovalEndpoint() {
return new WhitelabelApprovalEndpoint();
}
代码示例来源:origin: org.springframework.security.oauth/spring-security-oauth2
@RequestMapping("/oauth/confirm_access")
public ModelAndView getAccessConfirmation(Map<String, Object> model, HttpServletRequest request) throws Exception {
final String approvalContent = createTemplate(model, request);
if (request.getAttribute("_csrf") != null) {
model.put("_csrf", request.getAttribute("_csrf"));
}
View approvalView = new View() {
@Override
public String getContentType() {
return "text/html";
}
@Override
public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) throws Exception {
response.setContentType(getContentType());
response.getWriter().append(approvalContent);
}
};
return new ModelAndView(approvalView, model);
}
代码示例来源:origin: spring-projects/spring-security-oauth
@Bean
public WhitelabelApprovalEndpoint oauth2ApprovalEndpoint() {
return new WhitelabelApprovalEndpoint();
}
代码示例来源:origin: spring-projects/spring-security-oauth
@Bean
public WhitelabelApprovalEndpoint oauth2ApprovalEndpoint() {
return new WhitelabelApprovalEndpoint();
}
代码示例来源:origin: spring-projects/spring-security-oauth
@Bean
public WhitelabelApprovalEndpoint oauth2ApprovalEndpoint() {
return new WhitelabelApprovalEndpoint();
}
代码示例来源:origin: spring-projects/spring-security-oauth
@Bean
public WhitelabelApprovalEndpoint oauth2ApprovalEndpoint() {
return new WhitelabelApprovalEndpoint();
}
代码示例来源:origin: spring-projects/spring-security-oauth
@Bean
public WhitelabelApprovalEndpoint whitelabelApprovalEndpoint() {
return new WhitelabelApprovalEndpoint();
}
代码示例来源:origin: org.springframework.security.oauth/spring-security-oauth2
@Bean
public WhitelabelApprovalEndpoint whitelabelApprovalEndpoint() {
return new WhitelabelApprovalEndpoint();
}
代码示例来源:origin: pl.touk.widerest/widerest-api
@Bean
public WhitelabelApprovalEndpoint whitelabelApprovalEndpoint() {
return new WhitelabelApprovalEndpoint();
}
内容来源于网络,如有侵权,请联系作者删除!