最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Use Saml Claims with Spring Security Annotations - Stack Overflow

programmeradmin1浏览0评论

Hi I got my claims for saml,when I tried saml with spring security PreAuthorize attribute it cannot detect my claims in saml response.Is there a way to use Saml claims with PreAuthorize Attribute in spring 3.

@GetMapping("/home")
@PreAuthorize("hasAnyAuthority('CLAIM_ADMIN')")
public String home()
{
    System.out.println("Heyoo welcome to saml!!");
    return "/homepath";
}
发布评论

评论列表(0)

  1. 暂无评论