unicon / cas-client-autoconfig-support Goto Github PK
View Code? Open in Web Editor NEWAnnotation-based configuration support for Apereo CAS Java clients
License: Apache License 2.0
Annotation-based configuration support for Apereo CAS Java clients
License: Apache License 2.0
Relates to spring-projects/spring-boot#13510
We are reviewing our community starters list and a quick look here suggests that this starter doesn’t yet support Spring Boot 2.
Can you please let us know if/when you plan to support Spring Boot 2?
Thanks!
When I use the spring boot version 1.5.2.RELEASE
the class FilterRegistrationBean has move to
org.springframework.boot.web.servlet.FilterRegistrationBean
I want to log out, what should I do?
Hello,
I have successfully configured the cas client, but I fail to retrieve the user principal and attributes.
The following code always show "No user"
public static String getCurrentLogin() {
SecurityContext securityContext = SecurityContextHolder.getContext();
Authentication authentication = securityContext.getAuthentication();
String userName = "No user";
if (authentication != null) {
if (authentication.getPrincipal() instanceof UserDetails) {
UserDetails springSecurityUser = (UserDetails) authentication.getPrincipal();
userName = springSecurityUser.getUsername();
} else if (authentication.getPrincipal() instanceof String) {
userName = (String) authentication.getPrincipal();
}
userName = "No username";
}
return userName;
}
Thank you in advance.
Hi
I am pretty new to CAS. I have an Spring-boot application which i want to use CAS to authenticate.
I couldnt find any good and up to date example using CAS on Spring boot. I came across this project and it seems perfect to my use, but i cant use it. I tried to use your guide but it doesnt work. I cant even compile my application anymore. When i remove scope runtime from the maven dependency then i get another compilation error
Error:java: java.lang.NoClassDefFoundError: org/json/JSONException
I dont find where the problem is.
Is there any example using this project?
hi,
i want some urls not to pass to the sso server,then what should i do?
thanks.
sorry,my english is not good.
Spring boot 1.5.9
net.unicon.cas
cas-client-autoconfig-support
1.5.0-GA
Full version
If open @EnableCasClient You get errors.
can you give a demo of spring boot use it?
How to register SingleSignOutFilter
filter and how can I process logout request correctly?
Is there a property for cas.server-logout-url? How does one go about configuring/implementing CAS logout functionality?
This certainly seems like the way to go for Spring Boot apps, but I think most people are going to want integration with Spring Security (I sure do!)
I was wondering if there was a way to use the attributes returned from the principal to protect certain URLs globally. Currently I am handling the check in each controller method like this using a custom util class:
Optional<Map> attributes = userUtil.hasAuthority(request); if(!attributes.isPresent()) { return "redirect:/401"; }
The specific attributes I am checking against is the return of certain Active Directory groups. An example of what I want would be something along the lines of what Spring Security offers:
@Override protected void configure(HttpSecurity http) throws Exception { http .authorizeRequests() .antMatchers("/").hasAuthority("ADGroup");
I really appreciate all of the work you've done on this project, it has helped us out tremendously and would really appreciate some guidance with this step.
Thank you,
Brennan Turner
Hi,
Instead of @Value
, could you please migrate these to a simple POJO annotated with @ConfigurationProperties
. This not only gives you better support for relaxed binding but if you enable the spring-boot-configuration-processor
you'll offer content assist for those keys in the IDE (STS, Intellij IDEA and Netbeans are offering such Spring Boot support now)
I am happy to help you migrating to that model.
See also the documentation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.