Re: [cas-dev] Better protocol differentiation

2021-06-07 Thread Travis Schmidt
I have solved this in my deployment by having three different
ServicesManagers that are chained.  One that is CAS only services, one that
is OAuth services and one that is SAML services.  Using the supports()
methods to control how a service is selected.  The CAS only uses the
friendlyName match to RegexRegisteredService, so having a
CasRegisteredService would simplify that to an instanceof check.

Travis

On Mon, Jun 7, 2021 at 1:07 AM Jérôme LELEU  wrote:

> Hi,
>
> I have this SAML SP definition in CAS:
>
> {
>   "@class" : "org.apereo.cas.support.saml.services.SamlRegisteredService",
>   "serviceId" : "http://localhost:8081.*;,
>   "name" : "SAMLService",
>   "id" : 1,
>   "evaluationOrder" : 1,
>   "metadataLocation" : 
> "/Users/jleleu/sources/spring-webmvc-pac4j-boot-demo/sp-metadata.xml"
> }
>
>
> And I have realized that I can log in using the CAS protocol with the same
> service definition :
>
>
> http://localhost:8080/cas/login?service=http%3A%2F%2Flocalhost%3A8081%2Fcallback%3Fclient_name%3DCasClient
>
> I would have expected the SAML definition not to work for the CAS protocol.
>
> More generally, I have the feeling that protocols are not sufficiently
> differentiated in CAS.
> I'm thinking about the SamlIdPSingleLogoutServiceMessageHandler and the
> DefaultSingleLogoutServiceMessageHandler components although there might
> be better examples.
>
> We have built the SAML, OAuth and OIDC protocols on top of the CAS
> protocol while CAS should be somehow alongside the other protocols.
>
> In terms of design, as a first step, I would make RegexRegisteredService an
> abstract class and create a *CasRegisteredService* (inheriting from it)
> like we have a SamlRegisteredService, a OAuthRegisteredService...
>
> This may be a huge change better targeted at v6.5 or even v7.
>
> Does it make sense?
>
> Thanks.
> Best regards,
> Jérôme
>
> --
> You received this message because you are subscribed to the Google Groups
> "CAS Developer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cas-dev+unsubscr...@apereo.org.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-dev/CAP279LzNmaCyk1f_ugJRcQbTappYN8zkKZnw6YAfYdyJZpK7HA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-dev+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-dev/CAC_RtEaqf3adh1QM4La7wVY%2Bpx8%2BVW65MT3M9-cALrwebCp3xw%40mail.gmail.com.


[cas-dev] CAS Management v6.0.0-RC4 release

2018-12-27 Thread Travis Schmidt
CAS Mgmt v6.0.0-RC4 has been released:
https://github.com/apereo/cas-management/releases/tag/v6.0.0-RC4

Travis

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-dev+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.


[cas-dev] CAS Mamagement v5.3.0-RC3 Released

2018-04-05 Thread Travis Schmidt
v5.3.0-RC3 of the CAS Management Application has been released and
available to try out.

Details at the link below:
https://github.com/apereo/cas-management/releases/tag/v5.3.0-RC3

Thanks
Travis

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-dev+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.


[cas-dev] CAS Management App

2018-02-14 Thread Travis Schmidt
CAS Management 5.3.0 RC2 is released:
https://github.com/apereo/cas-management/releases/tag/v5.3.0-RC2

Thanks
Travis

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-dev+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.


Re: [cas-dev] CAS 5.2.2 Webapp bugs

2018-02-01 Thread Travis Schmidt
A fix for the no save for Duplicate is in the PR
https://github.com/apereo/cas/pull/3185

The Case Insensitive checkbox tool tip was incorrect and I fixed that.  The
value of the check box is being saved when checked, so I am not sure what
the issue is that you are seeing with this.

Travis

On Thu, Feb 1, 2018 at 10:55 AM Mukunthini Jeyakumar 
wrote:

> Hi,
> I'm using  CAS 5.2.2 Webapp
>
> There are few bugs I've noticed so far.
>
>  1. Service Access Strategy --> Required Attributes option
> > the attributes are case sensitive and checking "Case insensitive"
> option is not working
> 2. No "save" button for 'Duplicate" service option
>
> Thanks
> Thini
>
> --
> You received this message because you are subscribed to the Google Groups
> "CAS Developer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cas-dev+unsubscr...@apereo.org.
> Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.
>

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-dev+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.


[cas-dev] CAS Management App Bootstrap Config

2017-05-24 Thread Travis Schmidt
Is it possible to make the CAS Management App pull cas.standalone.config
from the VM options like it does for CAS Server?  It looked to me like it
should, but it did not pull the correct value when I tried.  I had to add
cas.standalone.config setting into bootstrap.properties for it to set the
correct config directory.

Travis

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-dev+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.


[cas-dev] Re: CAS 5.1.0-SNAPSHOT OIDC Server throwing NPE

2016-11-17 Thread Travis Schmidt
This was caused by a small change on my end.  Not a real issue. Sorry.

Thanks
Travis

On Wed, Nov 16, 2016 at 4:12 PM Travis Schmidt <travis.schm...@gmail.com>
wrote:

> Trying to set up a test using latest build from master for OIDC Server
> Support.  I get the following stacktrace after entering credentials:
>
> java.lang.NullPointerException
> at java.net.URI$Parser.parse(URI.java:3042) ~[?:1.8.0_111]
> at java.net.URI.(URI.java:588) ~[?:1.8.0_111]
> at org.jasig.cas.client.util.URIBuilder.(URIBuilder.java:83)
> ~[cas-client-core-3.4.1.jar:3.4.1]
> at
> org.apereo.cas.util.OidcAuthorizationRequestSupport.getOidcPromptFromAuthorizationRequest(OidcAuthorizationRequestSupport.java:47)
> ~[cas-server-support-oidc-5.1.0-SNAPSHOT.jar:5.1.0-SNAPSHOT]
> at
> org.apereo.cas.config.OidcConfiguration$1.resolve(OidcConfiguration.java:145)
> ~[cas-server-support-oidc-5.1.0-SNAPSHOT.jar:5.1.0-SNAPSHOT]
> at
> org.apereo.cas.support.oauth.web.OAuth20CallbackAuthorizeController.handleRequestInternal(OAuth20CallbackAuthorizeController.java:49)
> ~[cas-server-support-oauth-5.1.0-SNAPSHOT.jar:5.1.0-SNAPSHOT]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_111]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_111]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_111]
> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
> at
> org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:220)
> ~[spring-web-4.3.4.RELEASE.jar:4.3.4.RELEASE]
> at
> org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:134)
> ~[spring-web-4.3.4.RELEASE.jar:4.3.4.RELEASE]
> at
> org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
> ~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
> at
> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
> ~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
> at
> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
> ~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
> at
> org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
> ~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
> at
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
> ~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
> at
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
> ~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
> at
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
> ~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
> at
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
> ~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
> ~[servlet-api.jar:?]
> at
> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
> ~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> ~[servlet-api.jar:?]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> ~[catalina.jar:8.0.32]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> ~[catalina.jar:8.0.32]
> at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> ~[tomcat-websocket.jar:8.0.32]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> ~[catalina.jar:8.0.32]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> ~[catalina.jar:8.0.32]
> at
> org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)
> ~[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
> at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
> ~[spring-web-4.3.4.RELEASE.jar:4.3.4.RELEASE]
>

[cas-dev] CAS 5.1.0-SNAPSHOT OIDC Server throwing NPE

2016-11-16 Thread Travis Schmidt
Trying to set up a test using latest build from master for OIDC Server
Support.  I get the following stacktrace after entering credentials:

java.lang.NullPointerException
at java.net.URI$Parser.parse(URI.java:3042) ~[?:1.8.0_111]
at java.net.URI.(URI.java:588) ~[?:1.8.0_111]
at org.jasig.cas.client.util.URIBuilder.(URIBuilder.java:83)
~[cas-client-core-3.4.1.jar:3.4.1]
at
org.apereo.cas.util.OidcAuthorizationRequestSupport.getOidcPromptFromAuthorizationRequest(OidcAuthorizationRequestSupport.java:47)
~[cas-server-support-oidc-5.1.0-SNAPSHOT.jar:5.1.0-SNAPSHOT]
at
org.apereo.cas.config.OidcConfiguration$1.resolve(OidcConfiguration.java:145)
~[cas-server-support-oidc-5.1.0-SNAPSHOT.jar:5.1.0-SNAPSHOT]
at
org.apereo.cas.support.oauth.web.OAuth20CallbackAuthorizeController.handleRequestInternal(OAuth20CallbackAuthorizeController.java:49)
~[cas-server-support-oauth-5.1.0-SNAPSHOT.jar:5.1.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_111]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_111]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:220)
~[spring-web-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:134)
~[spring-web-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
~[servlet-api.jar:?]
at
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
~[spring-webmvc-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
~[servlet-api.jar:?]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
~[catalina.jar:8.0.32]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
~[catalina.jar:8.0.32]
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
~[tomcat-websocket.jar:8.0.32]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
~[catalina.jar:8.0.32]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
~[catalina.jar:8.0.32]
at
org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)
~[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
~[spring-web-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
~[catalina.jar:8.0.32]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
~[catalina.jar:8.0.32]
at
org.apereo.cas.web.support.CurrentCredentialsAndAuthenticationClearingFilter.doFilter(CurrentCredentialsAndAuthenticationClearingFilter.java:28)
~[cas-server-core-web-5.1.0-SNAPSHOT.jar:5.1.0-SNAPSHOT]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
~[catalina.jar:8.0.32]
at

[cas-dev] Re: CAS-Mgmt App startup failure

2016-11-15 Thread Travis Schmidt
This has been resolved after some of the latest commits to master.

Thanks
Travis

On Tue, Nov 15, 2016 at 11:10 AM Travis Schmidt <travis.schm...@gmail.com>
wrote:

> I am getting this error when trying to deploy CAS Management app built
> from the latest 5.1.0-SNAPSHOT.  I have not been able to track down why.
>
> 2016-11-15 19:07:32,131 WARN
> [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext]
> -  attempt: org.springframework.beans.factory.UnsatisfiedDependencyException:
> Error creating bean with name 'casCoreTicketsConfiguration': Unsatisfied
> dependency expressed through field 'logoutManager'; nested exception is
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No
> qualifying bean of type 'org.apereo.cas.logout.LogoutManager' available:
> expected at least 1 bean which qualifies as autowire candidate. Dependency
> annotations:
> {@org.springframework.beans.factory.annotation.Autowired(required=true),
> @org.springframework.beans.factory.annotation.Qualifier(value=logoutManager)}>
> cas-mgmt5_1 | 2016-11-15 19:07:32,568 ERROR
> [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter] - <
> cas-mgmt5_1 |
> cas-mgmt5_1 | ***
> cas-mgmt5_1 | APPLICATION FAILED TO START
> cas-mgmt5_1 | ***
> cas-mgmt5_1 |
> cas-mgmt5_1 | Description:
> cas-mgmt5_1 |
> cas-mgmt5_1 | Field logoutManager in
> org.apereo.cas.config.CasCoreTicketsConfiguration required a bean of type
> 'org.apereo.cas.logout.LogoutManager' that could not be found.
> cas-mgmt5_1 |
> cas-mgmt5_1 |
> cas-mgmt5_1 | Action:
> cas-mgmt5_1 |
> cas-mgmt5_1 | Consider defining a bean of type
> 'org.apereo.cas.logout.LogoutManager' in your configuration.
> cas-mgmt5_1 | >
> cas-mgmt5_1 | 15-Nov-2016 19:07:32.570 SEVERE [localhost-startStop-1]
> org.apache.catalina.core.ContainerBase.addChildInternal
> ContainerBase.addChild: start:
> cas-mgmt5_1 |  org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas-management]]
> cas-mgmt5_1 | at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
> cas-mgmt5_1 | at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
> cas-mgmt5_1 | at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
> cas-mgmt5_1 | at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
> cas-mgmt5_1 | at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
> cas-mgmt5_1 | at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816)
> cas-mgmt5_1 | at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> cas-mgmt5_1 | at
> java.util.concurrent.FutureTask.run(FutureTask.java:266)
> cas-mgmt5_1 | at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> cas-mgmt5_1 | at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> cas-mgmt5_1 | at java.lang.Thread.run(Thread.java:745)
> cas-mgmt5_1 | Caused by:
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name 'casCoreTicketsConfiguration': Unsatisfied
> dependency expressed through field 'logoutManager'; nested exception is
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No
> qualifying bean of type 'org.apereo.cas.logout.LogoutManager' available:
> expected at least 1 bean which qualifies as autowire candidate. Dependency
> annotations:
> {@org.springframework.beans.factory.annotation.Autowired(required=true),
> @org.springframework.beans.factory.annotation.Qualifier(value=logoutManager)}
> cas-mgmt5_1 | at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:592)
> cas-mgmt5_1 | at
> org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
> cas-mgmt5_1 | at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:370)
> cas-mgmt5_1 | at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1219)
> cas-mgmt5_1 | at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
> cas-mgmt5_1 | at
> org.springfram

[cas-dev] CAS 5.0 Service Registry backwards compatibility

2016-08-16 Thread Travis Schmidt
We are taking on the effort of getting all services that use CAS into the
Service Registry under the 4.2.2 version.  When I try to load those
services that are stored in JSON, into CAS 5.0 they error out for the
obvious reason that the full classpath names have changed from org.jasig.*
to org.apereo.*.  There is also an error when deserializing
DefaultPrincipalAttributesRepository since timeUnit was changed from
java.util.concurrent.TimeUnit to just be String in
AbstractPrincipalAttributesRepository.  I was able to make it compatible by
adding this in the serializer:

jsonString.replaceAll("jasig","apereo").replace("[\"java.util.concurrent.TimeUnit\",\"HOURS\"]}","\"HOURS\"}")


This obviously only works for cases where the default HOURS unit is
not overwritten, which we don't.

Is there a plan to make the code read entries created in earlier
format?  Perhaps include a script that can be run to make convert the
old entries into the new format?

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-dev+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.


[cas-dev] _csrf meta tags are blank

2016-02-03 Thread Travis Schmidt


I was lookging into the /statistics/ssosessions page that is part of 4.2.x.  I 
was getting an error when trying to remove a session in the javascript.  The 
error was that headers were trying to be set as part of the request with an 
empty key value.  Looking into it some it appears that code in top.jsp is not 
find _csrf_token and _csrf_header_name.  This is the result in page:


 
 


Been trying to figure out how to configure this so it is set, but have not had 
much luck, so I thought I would ask the question out here.


Travis

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-dev+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.