org.springframework.security.oauth2.provider.endpoint.WhitelabelApprovalEndpoint类的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(121)

本文整理了Java中org.springframework.security.oauth2.provider.endpoint.WhitelabelApprovalEndpoint类的一些代码示例,展示了WhitelabelApprovalEndpoint类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WhitelabelApprovalEndpoint类的具体详情如下:
包路径:org.springframework.security.oauth2.provider.endpoint.WhitelabelApprovalEndpoint
类名称: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();
}

相关文章

WhitelabelApprovalEndpoint类方法