[cas-user] Custom Authentication

52 views
Skip to first unread message

Ramakrishna G

unread,
Jan 31, 2018, 8:36:25 AM1/31/18
to CAS Community
I am using CAS Version 5.2.1

I need to implement Custom Authenticaction Handler and I have used https://apereo.github.io/cas/5.2.x/installation/Configuring-Custom-Authentication.html for that.

As per the site I have registered in spring.factories. 

But nothing seems to work. How do I check it is registered and getting called. I see nothing in logs. When I login it never comes to MyAuthenticationHandler

What am i missing?


Thanks in advance.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/4d8a426c-3d91-491a-a950-df17d4499d2e%40apereo.org.
application.properties
MyAuthenticationEventExecutionPlanConfiguration.java
MyAuthenticationHandler.java

Man H

unread,
Jan 31, 2018, 9:33:00 AM1/31/18
to cas-...@apereo.org
Please see this link maybe ir can help:



El miércoles, 31 de enero de 2018, Ramakrishna G <ramak...@teligenz.in> escribió:
I am using CAS Version 5.2.1

I need to implement Custom Authenticaction Handler and I have used https://apereo.github.io/cas/5.2.x/installation/Configuring-Custom-Authentication.html for that.

As per the site I have registered in spring.factories. 

But nothing seems to work. How do I check it is registered and getting called. I see nothing in logs. When I login it never comes to MyAuthenticationHandler

What am i missing?


Thanks in advance.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5mif0pbiTxdpkiZRa8cSFo_%3D9k6z%2B0EqV%2BB5EHAe66KVNyQ%40mail.gmail.com.

Ramakrishna G

unread,
Feb 2, 2018, 7:52:59 AM2/2/18
to cas-...@apereo.org
I don't have JDBC connection. I need to connect to custom server for validation. I was just trying

FileAuthenticationHandler. When I run mvn clean package it shows "

package org.apereo.cas.adaptors.generic does not exist

"


How do I compile these java files? 


Cas Version no: 5.2.1

Project : Cas_overlay_maven

I have also set the JAVA_PATH


On Wed, Jan 31, 2018 at 8:02 PM, Man H <info.i...@gmail.com> wrote:
Please see this link maybe ir can help:



El miércoles, 31 de enero de 2018, Ramakrishna G <ramak...@teligenz.in> escribió:
I am using CAS Version 5.2.1

I need to implement Custom Authenticaction Handler and I have used https://apereo.github.io/cas/5.2.x/installation/Configuring-Custom-Authentication.html for that.

As per the site I have registered in spring.factories. 

But nothing seems to work. How do I check it is registered and getting called. I see nothing in logs. When I login it never comes to MyAuthenticationHandler

What am i missing?


Thanks in advance.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/4d8a426c-3d91-491a-a950-df17d4499d2e%40apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGST5P-B-Mp3yd3Zm3WVAcNxNeyyVmRmnCUw-9cK5p%2BkwGqHtQ%40mail.gmail.com.
MyAuthenticationEventExecutionPlanConfiguration.java
MyAuthenticationHandler.java
pom.xml

Man H

unread,
Feb 2, 2018, 10:19:39 AM2/2/18
to cas-...@apereo.org
Replace
        final FileAuthenticationHandler h = new FileAuthenticationHandler(fileProperties.getName(), servicesManager, filePrincipalFactory(),
                    fileProperties.getFilename(), fileProperties.getSeparator());
by

        final MyAuthenticationHandler h = new MyAuthenticationHandler(fileProperties.getName(), servicesManager, filePrincipalFactory(),
                    fileProperties.getFilename(), fileProperties.getSeparator());

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5mieZwSedFUTxOdV3dXXTDWGdfxduOZep%3DYv-TdOcGyqo_A%40mail.gmail.com.

Ramakrishna G

unread,
Feb 2, 2018, 10:54:43 AM2/2/18
to cas-...@apereo.org
When I use mvn clean package command in terminal I get the following error.

[INFO] Compiling 2 source files to /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/target/classes

[INFO] -------------------------------------------------------------

[ERROR] COMPILATION ERROR : 

[INFO] -------------------------------------------------------------

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[11,31] package org.apache.commons.lang does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[12,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[13,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[14,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[15,53] package org.apereo.cas.authentication.handler.support does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[16,47] package org.apereo.cas.authentication.principal does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[17,31] package org.apereo.cas.services does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[18,35] package org.springframework.core.io does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[20,46] cannot find symbol

  symbol: class AbstractUsernamePasswordAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[29,19] cannot find symbol

  symbol:   class Resource

  location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[32,61] cannot find symbol

  symbol:   class ServicesManager

  location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[32,100] cannot find symbol

  symbol:   class PrincipalFactory

  location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[33,19] cannot find symbol

  symbol:   class Resource

  location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[41,72] cannot find symbol

  symbol:   class UsernamePasswordCredential

  location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[41,15] cannot find symbol

  symbol:   class HandlerResult

  location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[43,46] cannot find symbol

  symbol:   class PreventedException

  location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[3,39] package org.apereo.cas.adaptors.generic does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[4,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[5,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[6,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[7,47] package org.apereo.cas.authentication.principal does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[8,47] package org.apereo.cas.authentication.principal does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[9,47] package org.apereo.cas.authentication.principal does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[10,47] package org.apereo.cas.authentication.principal does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[11,54] package org.apereo.cas.authentication.support.password does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[12,54] package org.apereo.cas.authentication.support.password does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[13,36] package org.apereo.cas.configuration does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[14,58] package org.apereo.cas.configuration.model.support.generic does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[15,31] package org.apereo.cas.services does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[16,17] package org.slf4j does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[17,17] package org.slf4j does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[18,52] package org.springframework.beans.factory.annotation does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[19,52] package org.springframework.beans.factory.annotation does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[20,56] package org.springframework.boot.autoconfigure.condition does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[21,51] package org.springframework.boot.context.properties does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[22,46] package org.springframework.context.annotation does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[23,46] package org.springframework.context.annotation does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[27,74] cannot find symbol

  symbol: class AuthenticationEventExecutionPlanConfigurer

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[25,2] cannot find symbol

  symbol: class Configuration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[26,2] cannot find symbol

  symbol: class EnableConfigurationProperties

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[29,30] cannot find symbol

  symbol:   class Logger

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[32,13] cannot find symbol

  symbol:   class CasConfigurationProperties

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[36,13] cannot find symbol

  symbol:   class PasswordPolicyConfiguration

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[40,13] cannot find symbol

  symbol:   class ServicesManager

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[44,13] cannot find symbol

  symbol:   class PrincipalResolver

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[48,12] cannot find symbol

  symbol:   class PrincipalFactory

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[53,12] cannot find symbol

  symbol:   class AuthenticationHandler

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[69,60] cannot find symbol

  symbol:   class AuthenticationEventExecutionPlan

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[31,6] cannot find symbol

  symbol:   class Autowired

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[34,6] cannot find symbol

  symbol:   class Autowired

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[35,6] cannot find symbol

  symbol:   class Qualifier

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[38,6] cannot find symbol

  symbol:   class Autowired

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[39,6] cannot find symbol

  symbol:   class Qualifier

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[42,6] cannot find symbol

  symbol:   class Autowired

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[43,6] cannot find symbol

  symbol:   class Qualifier

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[46,6] cannot find symbol

  symbol:   class ConditionalOnMissingBean

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[47,6] cannot find symbol

  symbol:   class Bean

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[52,6] cannot find symbol

  symbol:   class Bean

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[40,5] method does not override or implement a method from a supertype

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[50,17] cannot find symbol

  symbol:   variable StringUtils

  location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[53,17] cannot find symbol

  symbol:   method matches(java.lang.String,java.lang.String)

  location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[54,71] cannot find symbol

  symbol: variable principalFactory

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[57,23] cannot find symbol

  symbol:   class PreventedException

  location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[29,46] cannot find symbol

  symbol:   variable LoggerFactory

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[49,20] cannot find symbol

  symbol:   class DefaultPrincipalFactory

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[55,23] cannot find symbol

  symbol:   class FileAuthenticationProperties

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[58,38] cannot find symbol

  symbol:   variable PasswordEncoderUtils

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[63,43] cannot find symbol

  symbol:   variable PrincipalNameTransformerUtils

  location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[68,5] method does not override or implement a method from a supertype

[INFO] 69 errors 

[INFO] -------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 01:54 min

[INFO] Finished at: 2018-02-02T21:22:24+05:30

[INFO] Final Memory: 33M/255M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cas-overlay: Compilation failure: Compilation failure: 

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[11,31] package org.apache.commons.lang does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[12,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[13,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[14,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[15,53] package org.apereo.cas.authentication.handler.support does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[16,47] package org.apereo.cas.authentication.principal does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[17,31] package org.apereo.cas.services does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[18,35] package org.springframework.core.io does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[20,46] cannot find symbol

[ERROR]   symbol: class AbstractUsernamePasswordAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[29,19] cannot find symbol

[ERROR]   symbol:   class Resource

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[32,61] cannot find symbol

[ERROR]   symbol:   class ServicesManager

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[32,100] cannot find symbol

[ERROR]   symbol:   class PrincipalFactory

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[33,19] cannot find symbol

[ERROR]   symbol:   class Resource

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[41,72] cannot find symbol

[ERROR]   symbol:   class UsernamePasswordCredential

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[41,15] cannot find symbol

[ERROR]   symbol:   class HandlerResult

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[43,46] cannot find symbol

[ERROR]   symbol:   class PreventedException

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[3,39] package org.apereo.cas.adaptors.generic does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[4,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[5,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[6,37] package org.apereo.cas.authentication does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[7,47] package org.apereo.cas.authentication.principal does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[8,47] package org.apereo.cas.authentication.principal does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[9,47] package org.apereo.cas.authentication.principal does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[10,47] package org.apereo.cas.authentication.principal does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[11,54] package org.apereo.cas.authentication.support.password does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[12,54] package org.apereo.cas.authentication.support.password does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[13,36] package org.apereo.cas.configuration does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[14,58] package org.apereo.cas.configuration.model.support.generic does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[15,31] package org.apereo.cas.services does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[16,17] package org.slf4j does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[17,17] package org.slf4j does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[18,52] package org.springframework.beans.factory.annotation does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[19,52] package org.springframework.beans.factory.annotation does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[20,56] package org.springframework.boot.autoconfigure.condition does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[21,51] package org.springframework.boot.context.properties does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[22,46] package org.springframework.context.annotation does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[23,46] package org.springframework.context.annotation does not exist

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[27,74] cannot find symbol

[ERROR]   symbol: class AuthenticationEventExecutionPlanConfigurer

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[25,2] cannot find symbol

[ERROR]   symbol: class Configuration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[26,2] cannot find symbol

[ERROR]   symbol: class EnableConfigurationProperties

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[29,30] cannot find symbol

[ERROR]   symbol:   class Logger

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[32,13] cannot find symbol

[ERROR]   symbol:   class CasConfigurationProperties

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[36,13] cannot find symbol

[ERROR]   symbol:   class PasswordPolicyConfiguration

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[40,13] cannot find symbol

[ERROR]   symbol:   class ServicesManager

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[44,13] cannot find symbol

[ERROR]   symbol:   class PrincipalResolver

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[48,12] cannot find symbol

[ERROR]   symbol:   class PrincipalFactory

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[53,12] cannot find symbol

[ERROR]   symbol:   class AuthenticationHandler

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[69,60] cannot find symbol

[ERROR]   symbol:   class AuthenticationEventExecutionPlan

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[31,6] cannot find symbol

[ERROR]   symbol:   class Autowired

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[34,6] cannot find symbol

[ERROR]   symbol:   class Autowired

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[35,6] cannot find symbol

[ERROR]   symbol:   class Qualifier

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[38,6] cannot find symbol

[ERROR]   symbol:   class Autowired

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[39,6] cannot find symbol

[ERROR]   symbol:   class Qualifier

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[42,6] cannot find symbol

[ERROR]   symbol:   class Autowired

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[43,6] cannot find symbol

[ERROR]   symbol:   class Qualifier

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[46,6] cannot find symbol

[ERROR]   symbol:   class ConditionalOnMissingBean

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[47,6] cannot find symbol

[ERROR]   symbol:   class Bean

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[52,6] cannot find symbol

[ERROR]   symbol:   class Bean

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[40,5] method does not override or implement a method from a supertype

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[50,17] cannot find symbol

[ERROR]   symbol:   variable StringUtils

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[53,17] cannot find symbol

[ERROR]   symbol:   method matches(java.lang.String,java.lang.String)

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[54,71] cannot find symbol

[ERROR]   symbol: variable principalFactory

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationHandler.java:[57,23] cannot find symbol

[ERROR]   symbol:   class PreventedException

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationHandler

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[29,46] cannot find symbol

[ERROR]   symbol:   variable LoggerFactory

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[49,20] cannot find symbol

[ERROR]   symbol:   class DefaultPrincipalFactory

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[55,23] cannot find symbol

[ERROR]   symbol:   class FileAuthenticationProperties

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[58,38] cannot find symbol

[ERROR]   symbol:   variable PasswordEncoderUtils

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[63,43] cannot find symbol

[ERROR]   symbol:   variable PrincipalNameTransformerUtils

[ERROR]   location: class org.apereo.cas.config.MyAuthenticationEventExecutionPlanConfiguration

[ERROR] /Users/macdev/Desktop/cas/cas_workspace/cas-overlay-template-master/src/main/java/org/apereo/cas/config/MyAuthenticationEventExecutionPlanConfiguration.java:[68,5] method does not override or implement a method from a supertype



--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGST5P-00tkPzhGp7ATfviSC35P_QsQsK1uR0yWz7jpA%3D8bVRw%40mail.gmail.com.

Man H

unread,
Feb 2, 2018, 12:50:40 PM2/2/18
to cas-...@apereo.org
check this dependencies
       <dependency>
            <groupId>org.apereo.cas</groupId>
            <artifactId>cas-server-core-authentication</artifactId>
        </dependency>
       
        <dependency>
            <groupId>org.apereo.cas</groupId>
            <artifactId>cas-server-core-configuration</artifactId>
        </dependency>
       
        <dependency>
            <groupId>org.apereo.cas</groupId>
            <artifactId>cas-server-core-webflow</artifactId>
            <version>${cas.version}</version>
           
        </dependency>
       

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5micjuye4kvOfWyi0Sv5cmt7b3cH0gvt6CaXSz82cKvephQ%40mail.gmail.com.

Ramakrishna G

unread,
Feb 3, 2018, 12:50:50 PM2/3/18
to cas-...@apereo.org
Thank you Man H. Build Succeed. But now when I run "./build sh run" I am getting the following error.

2018-02-03 23:13:02,913 INFO [org.apereo.cas.configuration.config.CasCoreBootstrapStandaloneConfiguration] - <Found and loaded [5] setting(s) from [/etc/cas/config]>

2018-02-03 23:13:02,915 INFO [org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration] - <Located property source: PropertiesPropertySource {name='standaloneCasConfigService'}>

2018-02-03 23:13:03,747 WARN [org.apereo.cas.web.CasWebApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [org.apereo.cas.web.CasWebApplication]; nested exception is java.lang.IllegalStateException: Unable to read meta-data for class >

2018-02-03 23:13:03,747 ERROR [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Destroy method on bean with name 'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory' threw an exception>

java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: CasWebApplicationContext

at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:414) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.context.support.ApplicationListenerDetector.postProcessBeforeDestruction(ApplicationListenerDetector.java:97) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253) ~[spring-beans-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578) ~[spring-beans-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554) ~[spring-beans-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:961) ~[spring-beans-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523) ~[spring-beans-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.destroySingletons(FactoryBeanRegistrySupport.java:230) ~[spring-beans-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:968) ~[spring-beans-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1030) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:556) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.apereo.cas.web.CasWebApplication.main(CasWebApplication.java:73) ~[cas-server-webapp-init-5.2.1.jar!/:5.2.1]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]

at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) ~[cas.war:?]

at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) ~[cas.war:?]

at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) ~[cas.war:?]

at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59) ~[cas.war:?]

2018-02-03 23:13:03,772 ERROR [org.springframework.boot.SpringApplication] - <Application startup failed>

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [org.apereo.cas.web.CasWebApplication]; nested exception is java.lang.IllegalStateException: Unable to read meta-data for class 

at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:556) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:185) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:308) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:228) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:272) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:92) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.apereo.cas.web.CasWebApplication.main(CasWebApplication.java:73) ~[cas-server-webapp-init-5.2.1.jar!/:5.2.1]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]

at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) ~[cas.war:?]

at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) ~[cas.war:?]

at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) ~[cas.war:?]

at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59) ~[cas.war:?]

Caused by: java.lang.IllegalStateException: Unable to read meta-data for class 

at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getAnnotationMetadata(AutoConfigurationSorter.java:217) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getAnnotationValue(AutoConfigurationSorter.java:198) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.readBefore(AutoConfigurationSorter.java:186) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.<init>(AutoConfigurationSorter.java:158) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClasses.<init>(AutoConfigurationSorter.java:115) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationSorter.getInPriorityOrder(AutoConfigurationSorter.java:57) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationImportSelector.sort(AutoConfigurationImportSelector.java:241) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationImportSelector.selectImports(AutoConfigurationImportSelector.java:98) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:547) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

... 21 more

Caused by: java.io.FileNotFoundException: class path resource [.class] cannot be opened because it does not exist

at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172) ~[spring-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:50) ~[spring-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:98) ~[spring-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.createMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:89) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:76) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:93) ~[spring-core-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getAnnotationMetadata(AutoConfigurationSorter.java:213) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getAnnotationValue(AutoConfigurationSorter.java:198) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.readBefore(AutoConfigurationSorter.java:186) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.<init>(AutoConfigurationSorter.java:158) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClasses.<init>(AutoConfigurationSorter.java:115) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationSorter.getInPriorityOrder(AutoConfigurationSorter.java:57) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationImportSelector.sort(AutoConfigurationImportSelector.java:241) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.boot.autoconfigure.AutoConfigurationImportSelector.selectImports(AutoConfigurationImportSelector.java:98) ~[spring-boot-autoconfigure-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]

at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:547) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

... 21 more

Can you pls help me resolve this issue? 

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGST5P9H3X%3DubNbFuupZHQ1Hd23%2BxF%3DQQaR1F-RFapENia5pMQ%40mail.gmail.com.

Man H

unread,
Feb 4, 2018, 11:10:56 AM2/4/18
to cas-...@apereo.org
- attach /etc/cas/config/cas.properties of server where you run cas
- make sure your war has META-INF spring.factories -> org.springframework.boot.autoconfigure.EnableAutoConfiguration=my.apps.cas.MyAuthenticationEventExecution


--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5mifKq7KRVOkTCK0c8FcG8FcA09yOmm-gBLALYz9L_WysAg%40mail.gmail.com.

Ramakrishna G

unread,
Feb 5, 2018, 1:03:46 AM2/5/18
to cas-...@apereo.org
Hello Man H

attach /etc/cas/config/cas.properties of server where you run cas - It is already attached

How do I do this?

- make sure your war has META-INF spring.factories -> org.springframework.boot.autoconfigure.EnableAutoConfiguration=my.apps.cas.MyAuthenticationEventExecution - When I run "sh build.sh run",  It is automatically copied in target/cas/WEB-INF/classes/META-INF/spring.factories and not in target/war/..

Also the source compiled is copied in target/cas/WEB-INF/classes/packagename/MyAuthenticationEventExecutionPlanConfiguration.class



--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGST5P9HMJV%2BeRp6VAjWJ5fw7oZ9tnV-GuYDnFKUiuBEMrDRRg%40mail.gmail.com.

Ramakrishna G

unread,
Feb 5, 2018, 1:20:00 AM2/5/18
to cas-...@apereo.org
When I try to login user is not authenticated.

It displays the below error.

2018-02-05 11:23:31,822 WARN [org.apereo.cas.authentication.policy.RequiredHandlerAuthenticationPolicy] - <Required authentication handler [MyAuthenticationHandler] is not present in the list of recorded successful authentications>

2018-02-05 11:23:31,825 WARN [org.apereo.cas.authentication.policy.RequiredHandlerAuthenticationPolicy] - <Required authentication handler [MyAuthenticationHandler] is not present in the list of recorded successful authentications>

2018-02-05 11:23:31,826 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports [casuser] of type [UsernamePasswordCredential].>

2018-02-05 11:23:31,827 WARN [org.apereo.cas.authentication.policy.RequiredHandlerAuthenticationPolicy] - <Required authentication handler [MyAuthenticationHandler] is not present in the list of recorded successful authentications>

2018-02-05 11:23:31,829 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <[AuthenticationException]: [Unable to satisfy authentication policy RequiredHandlerAuthenticationPolicy]>



--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGST5P_3g-Xhg3W8SvQcrAdD_c80DjPu5b6%3Dm31ODnS3Ajq%2B5A%40mail.gmail.com.

Man H

unread,
Feb 5, 2018, 7:49:47 AM2/5/18
to cas-...@apereo.org
Enable debug logging, in startup log see if handler gets registered 
Check bean annotation on handler 

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5midMyENUfRvp2pvtg77ED6%2BMVcRZCjhet8S0VU_miJW8PQ%40mail.gmail.com.

Ramakrishna G

unread,
Feb 5, 2018, 8:37:12 AM2/5/18
to cas-...@apereo.org
Hi Man H,

I am not able to see my logs in cas.log. I have a doubt whether it is registered or not.


I can see compiled source of 

MyAuthenticationEventExecutionPlanConfiguration.class and 

MyAuthenticationHandler.class inside target/cas/WEB-INF/classes/packagename/


When I run "sh ./build.sh run" I get to see this error on console


2018-02-05 18:54:13,521 INFO [org.apereo.cas.configuration.config.CasCoreBootstrapStandaloneConfiguration] - <Configuration files found at [/etc/cas/config] are [[/etc/cas/config/application.yml, /etc/cas/config/cas.properties]]>

2018-02-05 18:54:13,569 INFO [org.apereo.cas.configuration.config.CasCoreBootstrapStandaloneConfiguration] - <Found and loaded [14] setting(s) from [/etc/cas/config]>

2018-02-05 18:54:13,571 INFO [org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration] - <Located property source: PropertiesPropertySource {name='standaloneCasConfigService'}>

2018-02-05 18:54:20,073 WARN [org.apereo.cas.config.CasCoreTicketsConfiguration] - <Runtime memory is used as the persistence storage for retrieving and managing tickets. Tickets that are issued during runtime will be LOST upon container restarts. This MAY impact SSO functionality.>

2018-02-05 18:54:35,247 DEBUG [org.apereo.cas.config.CasCoreAuthenticationConfiguration] - <Configuring authentication execution plan [MyAuthenticationEventExecutionPlanConfiguration]>

2018-02-05 18:54:35,304 DEBUG [org.apereo.cas.config.CasCoreAuthenticationConfiguration] - <Configuring authentication execution plan [FileAuthenticationEventExecutionPlanConfiguration]>

2018-02-05 18:54:35,321 DEBUG [org.apereo.cas.config.CasCoreAuthenticationConfiguration] - <Configuring authentication execution plan [RejectUsersAuthenticationEventExecutionPlanConfiguration]>

2018-02-05 18:54:35,322 DEBUG [org.apereo.cas.config.CasCoreAuthenticationConfiguration] - <Configuring authentication execution plan [ShiroAuthenticationEventExecutionPlanConfiguration]>

2018-02-05 18:54:35,322 DEBUG [org.apereo.cas.config.CasCoreAuthenticationConfiguration] - <Configuring authentication execution plan [CasCoreAuthenticationHandlersConfiguration]>

2018-02-05 18:54:35,328 DEBUG [org.apereo.cas.config.CasCoreAuthenticationConfiguration] - <Configuring authentication execution plan [CasCoreAuthenticationHandlersConfiguration]>

2018-02-05 18:54:35,357 DEBUG [org.apereo.cas.config.CasCoreAuthenticationConfiguration] - <Configuring authentication execution plan [CasCoreAuthenticationMetadataConfiguration]>

2018-02-05 18:54:35,400 DEBUG [org.apereo.cas.config.CasCoreAuthenticationConfiguration] - <Configuring authentication execution plan [AcceptUsersAuthenticationEventExecutionPlanConfiguration]>

2018-02-05 18:54:35,401 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <>

2018-02-05 18:54:35,410 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <


  ____    _____    ___    ____    _ 

 / ___|  |_   _|  / _ \  |  _ \  | |

 \___ \    | |   | | | | | |_) | | |

  ___) |   | |   | |_| | |  __/  |_|

 |____/    |_|    \___/  |_|     (_)

                                    


CAS is configured to accept a static list of credentials for authentication. While this is generally useful for demo purposes, it is STRONGLY recommended that you DISABLE this authentication method (by setting 'cas.authn.accept.users' to a blank value) and switch to a mode that is more suitable for production.>

2018-02-05 18:54:35,411 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <>

2018-02-05 18:54:37,340 DEBUG [org.apereo.cas.config.CasCoreTicketsConfiguration] - <Ticket-granting ticket expiration policy is based on hard/idle timeouts of [28800]/[7200] seconds>

2018-02-05 18:54:37,552 DEBUG [org.apereo.cas.config.CasCoreConfiguration] - <Configuring authentication request service selection strategy plan [CasCoreAuthenticationServiceSelectionStrategyConfiguration]>

2018-02-05 18:54:38,966 DEBUG [org.apereo.cas.config.CasCoreUtilSerializationConfiguration] - <Configuring component serialization plan [CasCoreUtilSerializationConfiguration]>

2018-02-05 18:54:38,966 DEBUG [org.apereo.cas.config.CasCoreUtilSerializationConfiguration] - <Configuring component serialization plan [CasCoreComponentSerializationConfiguration]>

2018-02-05 18:54:40,659 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Initializing CAS webflow configuration...>

2018-02-05 18:54:41,410 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [initialFlowSetupAction]>

2018-02-05 18:54:41,417 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created end state state [viewRedirectToUnauthorizedUrlView] on flow id [login], backed by view factory [org.springframework.webflow.engine.support.ActionExecutingViewFactory@b926efa]>

2018-02-05 18:54:41,419 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created end state state [viewServiceErrorView] on flow id [login], backed by view factory [org.springframework.webflow.mvc.servlet.ServletMvcViewFactory@3653bb61]>

2018-02-05 18:54:41,419 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created end state state [redirectView] on flow id [login], backed by view factory [org.springframework.webflow.engine.support.ActionExecutingViewFactory@65595be7]>

2018-02-05 18:54:41,420 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created end state state [postView] on flow id [login], backed by view factory [org.springframework.webflow.mvc.servlet.ServletMvcViewFactory@23972e02]>

2018-02-05 18:54:41,420 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created end state state [headerView] on flow id [login]>

2018-02-05 18:54:41,420 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [injectResponseHeadersAction]>

2018-02-05 18:54:41,421 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created end state state [viewGenericLoginSuccess] on flow id [login], backed by view factory [org.springframework.webflow.mvc.servlet.ServletMvcViewFactory@3bea7134]>

2018-02-05 18:54:41,421 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [genericSuccessViewAction]>

2018-02-05 18:54:41,421 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added view state [showWarningView]>

2018-02-05 18:54:41,422 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [success] to the state [showWarningView]>

2018-02-05 18:54:41,422 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [serviceWarningAction]>

2018-02-05 18:54:41,422 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created action state [finalizeWarning]>

2018-02-05 18:54:41,423 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added action to the action state [finalizeWarning] list of actions: [list[[EvaluateAction@10c95d9b expression = serviceWarningAction, resultExpression = [null]]]]>

2018-02-05 18:54:41,429 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [redirect] to the state [finalizeWarning]>

2018-02-05 18:54:41,436 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [sendTicketGrantingTicketAction]>

2018-02-05 18:54:41,436 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created action state [sendTicketGrantingTicket]>

2018-02-05 18:54:41,436 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added action to the action state [sendTicketGrantingTicket] list of actions: [list[[EvaluateAction@3f60ba06 expression = sendTicketGrantingTicketAction, resultExpression = [null]]]]>

2018-02-05 18:54:41,437 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [success] to the state [sendTicketGrantingTicket]>

2018-02-05 18:54:41,437 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [generateServiceTicketAction]>

2018-02-05 18:54:41,437 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created action state [generateServiceTicket]>

2018-02-05 18:54:41,437 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added action to the action state [generateServiceTicket] list of actions: [list[[EvaluateAction@251d64d6 expression = generateServiceTicketAction, resultExpression = [null]]]]>

2018-02-05 18:54:41,437 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [success] to the state [generateServiceTicket]>

2018-02-05 18:54:41,438 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [warn] to the state [generateServiceTicket]>

2018-02-05 18:54:41,438 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [authenticationFailure] to the state [generateServiceTicket]>

2018-02-05 18:54:41,438 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [error] to the state [generateServiceTicket]>

2018-02-05 18:54:41,438 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [gateway] to the state [generateServiceTicket]>

2018-02-05 18:54:41,439 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [terminateSessionAction]>

2018-02-05 18:54:41,439 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created action state [terminateSession]>

2018-02-05 18:54:41,439 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added action to the action state [terminateSession] list of actions: [list[[EvaluateAction@4d96c290 expression = terminateSessionAction, resultExpression = [null]]]]>

2018-02-05 18:54:41,439 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [gatewayServicesManagementCheck]>

2018-02-05 18:54:41,440 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created action state [gatewayServicesManagementCheck]>

2018-02-05 18:54:41,440 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added action to the action state [gatewayServicesManagementCheck] list of actions: [list[[EvaluateAction@17e96b3c expression = gatewayServicesManagementCheck, resultExpression = [null]]]]>

2018-02-05 18:54:41,440 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [success] to the state [gatewayServicesManagementCheck]>

2018-02-05 18:54:41,440 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [serviceAuthorizationCheck]>

2018-02-05 18:54:41,441 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created action state [serviceAuthorizationCheck]>

2018-02-05 18:54:41,441 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added action to the action state [serviceAuthorizationCheck] list of actions: [list[[EvaluateAction@2d63534d expression = serviceAuthorizationCheck, resultExpression = [null]]]]>

2018-02-05 18:54:41,441 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [redirectToServiceAction]>

2018-02-05 18:54:41,441 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created action state [redirect]>

2018-02-05 18:54:41,441 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added action to the action state [redirect] list of actions: [list[[EvaluateAction@6316b9e3 expression = redirectToServiceAction, resultExpression = [null]]]]>

2018-02-05 18:54:41,442 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [post] to the state [redirect]>

2018-02-05 18:54:41,443 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [header] to the state [redirect]>

2018-02-05 18:54:41,443 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [redirect] to the state [redirect]>

2018-02-05 18:54:41,443 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [authenticationExceptionHandler]>

2018-02-05 18:54:41,444 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created action state [handleAuthenticationFailure]>

2018-02-05 18:54:41,444 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added action to the action state [handleAuthenticationFailure] list of actions: [list[[EvaluateAction@186f7553 expression = authenticationExceptionHandler, resultExpression = [null]]]]>

2018-02-05 18:54:41,445 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [AccountDisabledException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,445 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [AccountLockedException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,446 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [AccountPasswordMustChangeException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,446 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [CredentialExpiredException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,447 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [InvalidLoginLocationException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,447 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [InvalidLoginTimeException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,448 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [FailedLoginException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,448 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [AccountNotFoundException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,448 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [UnauthorizedServiceForPrincipalException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,448 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [PrincipalException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,448 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [UnsatisfiedAuthenticationPolicyException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,449 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [UnauthorizedAuthenticationException] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,449 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [serviceUnauthorizedCheck] to the state [handleAuthenticationFailure]>

2018-02-05 18:54:41,450 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added view state [showAuthenticationWarningMessages]>

2018-02-05 18:54:41,452 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added transition [proceed] to the state [showAuthenticationWarningMessages]>

2018-02-05 18:54:41,452 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created action state [proceedFromAuthenticationWarningView]>

2018-02-05 18:54:41,452 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added action to the action state [proceedFromAuthenticationWarningView] list of actions: [list[[empty]]]>

2018-02-05 18:54:41,452 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Created evaluate action for expression [sendTicketGrantingTicketAction]>

2018-02-05 18:54:41,587 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Initializing CAS webflow configuration...>

2018-02-05 18:54:45,974 DEBUG [org.apereo.cas.config.CasConfigurationSupportUtilitiesConfiguration] - <Starting to watch configuration directory [/etc/cas/config]>

2018-02-05 18:54:47,033 DEBUG [org.apereo.cas.config.CasCoreTicketsConfiguration] - <Configuring ticket metadata registration plan [CasCoreTicketCatalogConfiguration]>

2018-02-05 18:54:47,034 DEBUG [org.apereo.cas.config.CasCoreTicketCatalogConfiguration] - <Registering core CAS protocol ticket definitions...>

2018-02-05 18:54:47,116 DEBUG [org.apereo.cas.config.CasCoreTicketsSchedulingConfiguration] - <Ticket registry cleaner is enabled.>

2018-02-05 18:54:47,340 DEBUG [org.apereo.cas.config.CasPersonDirectoryConfiguration] - <Configured merging strategy for attribute sources is [REPLACE]>

2018-02-05 18:54:47,367 DEBUG [org.apereo.cas.config.CasPersonDirectoryConfiguration] - <Final list of attribute repositories is [[]]>

2018-02-05 18:54:47,369 DEBUG [org.apereo.cas.config.CasPersonDirectoryConfiguration] - <No attribute repository sources are available/defined to merge together.>

2018-02-05 18:54:47,450 DEBUG [org.apereo.cas.config.CasPersonDirectoryConfiguration] - <Configured cache expiration policy for merging attribute sources to be [30] minute(s)>

2018-02-05 18:54:55,959 DEBUG [org.apereo.cas.config.CasCoreAuthenticationPrincipalConfiguration] - <Attribute repository sources are not available for principal resolution so principal resolver will echo back the principal resolved during authentication directly.>

2018-02-05 18:54:56,333 WARN [org.apereo.cas.config.CasCoreServicesConfiguration] - <Runtime memory is used as the persistence storage for retrieving and persisting service definitions. Changes that are made to service definitions during runtime WILL be LOST upon container restarts. Ideally for production, you need to choose a storage option (JDBC, etc) to store and track service definitions.>

2018-02-05 18:54:56,467 DEBUG [org.apereo.cas.config.CasCoreTicketsConfiguration] - <Protocol tickets generated by CAS are not signed/encrypted.>

2018-02-05 18:54:56,997 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Initializing CAS webflow configuration...>

2018-02-05 18:54:56,998 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added view state [casAuthenticationBlockedView]>

2018-02-05 18:54:56,998 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added view state [casBadWorkstationView]>

2018-02-05 18:54:56,998 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added view state [casBadHoursView]>

2018-02-05 18:54:56,999 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added view state [casAccountLockedView]>

2018-02-05 18:54:56,999 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added view state [casAccountDisabledView]>

2018-02-05 18:54:56,999 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added view state [casPasswordUpdateSuccess]>

2018-02-05 18:54:57,000 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added view state [casExpiredPassView]>

2018-02-05 18:54:57,000 DEBUG [org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer] - <Added view state [casMustChangePassView]>

2018-02-05 18:54:57,027 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Secret key for encryption is not defined for [Ticket-granting Cookie]; CAS will attempt to auto-generate the encryption key>

2018-02-05 18:54:57,043 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Generated encryption key [kxqd_YRChhAKZbG0nj9R53A-YTWiDqarFZ9tGObH1Yo] of size [256] for [Ticket-granting Cookie]. The generated key MUST be added to CAS settings under setting [cas.tgc.crypto.encryption.key].>

2018-02-05 18:54:57,048 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Secret key for signing is not defined for [Ticket-granting Cookie]. CAS will attempt to auto-generate the signing key>

2018-02-05 18:54:57,048 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Generated signing key [3IMzXnr0VRjKY6I0kespveQFG5mr0BE_79MQZa5TyWT8nMo7GRoVA1VXQQacU5kF-zG0Eutxw3lXA3CCWD_-Mg] of size [512] for [Ticket-granting Cookie]. The generated key MUST be added to CAS settings under setting [cas.tgc.crypto.signing.key].>

2018-02-05 18:54:57,795 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Secret key for signing is not defined under [cas.webflow.crypto.signing.key]. CAS will attempt to auto-generate the signing key>

2018-02-05 18:54:57,795 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Generated signing key [Jkl85rHqj3AU9J8kXweIqJjTXWnW4_MzJkscmAiPmoqrfDB9J_7wnF3XGaWtMRraaA9rMnwgnbYnkSMIu-jLSA] of size [512]. The generated key MUST be added to CAS settings under setting [cas.webflow.crypto.signing.key].>

2018-02-05 18:54:57,795 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Secret key for encryption is not defined under [cas.webflow.crypto.encryption.key]. CAS will attempt to auto-generate the encryption key>

2018-02-05 18:54:57,804 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Generated encryption key [CRHaIv-9-l21-JWFC_DoMw] of size [16]. The generated key MUST be added to CAS settings under setting [cas.webflow.crypto.encryption.key].>



Also what does this mean "Check bean annotation on handler". Can you pls explain what I have to do?

To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGST5P9j78Gk2QV4piM%2Bx9_JMH%2BUpWTKTefrptL%2BhRisGN%3Dj%3Dw%40mail.gmail.com.
log4j2.xml
cas.log
MyAuthenticationEventExecutionPlanConfiguration.java
MyAuthenticationHandler.java
spring.factories

Man H

unread,
Feb 5, 2018, 10:10:15 AM2/5/18
to cas-...@apereo.org
Your log is ok there is no error the stop message is a warning!
Now try to debug your handler

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5micvgJ72FwtusNHtcnWZkHrqKzgGPqYs-rg%2BBpovO4O%3DQg%40mail.gmail.com.

Ramakrishna G

unread,
Feb 6, 2018, 12:47:20 AM2/6/18
to cas-...@apereo.org
Hi Man H,

I am using LOGGER inside MyAuthenticationEventExecutionPlanConfiguration.

private static final Logger LOGGER = LoggerFactory.getLogger(MyAuthenticationEventExecutionPlanConfiguration.class);


@Override

    public void configureAuthenticationExecutionPlan(final AuthenticationEventExecutionPlan plan) 

    {

        LOGGER.debug("zzz Added file-based authentication handler");

   

    }



Where will these logs be printed? I don't see these logs inside cas.log

   



To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGST5P_eDApPTfjY_diSgiOKzqd0wfd102%3DTpw1idj18gYsRSQ%40mail.gmail.com.

Ramakrishna G

unread,
Feb 6, 2018, 3:40:38 AM2/6/18
to cas-...@apereo.org
Ignore the previous issue. I was able to debug using SOP statements itself. When I try to login SOP statements are printed and my user is not getting authenticated.

 @Override

    protected HandlerResult authenticateUsernamePasswordInternal(final UsernamePasswordCredential transformedCredential,  final String originalPassword)

            throws GeneralSecurityException, PreventedException {

        try 

        {

            if (this.fileName == null) 

            {

            System.out.println("FileNotFoundException "+fileName);

                throw new FileNotFoundException("Filename does not exist");

            }

            final String username = transformedCredential.getUsername();

            final String passwordOnRecord = getPasswordOnRecord(username);

            if (StringUtils.isBlank(passwordOnRecord)) 

            {

            System.out.println("AccountNotFoundException ");

                throw new AccountNotFoundException(username + " not found in backing file.");

            }

            if (matches(originalPassword, passwordOnRecord)) 

            {

            System.out.println("______________Both Password Macthes ");

            

            HandlerResult result = createHandlerResult(transformedCredential, this.principalFactory.createPrincipal(username), null);

            System.out.println("1______________ "+this.principalFactory.createPrincipal(username));

            System.out.println("2______________ "+result.getHandlerName());

            return result;

            }

        } 

        catch (final IOException e) 

        {

        System.out.println("IO error reading backing file ");

            throw new PreventedException("IO error reading backing file", e);

        }

        System.out.println("FailedLoginException ");

        throw new FailedLoginException();

    }


output:

______________Both Password Macthes

1______________ casuser

2______________ usersfile


2018-02-06 14:00:22,155 WARN [org.apereo.cas.authentication.policy.RequiredHandlerAuthenticationPolicy] - <Required authentication handler [MyAuthenticationHandler] is not present in the list of recorded successful authentications>

2018-02-06 14:00:22,157 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports [casuser] of type [UsernamePasswordCredential].>

2018-02-06 14:00:22,157 WARN [org.apereo.cas.authentication.policy.RequiredHandlerAuthenticationPolicy] - <Required authentication handler [MyAuthenticationHandler] is not present in the list of recorded successful authentications>

2018-02-06 14:00:22,159 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <[AuthenticationException]: [Unable to satisfy authentication policy RequiredHandlerAuthenticationPolicy]>







To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGST5P-SyYEgQBQFR2C9Cph6epakhhcH3vCt7Qq6aMT3hQf15g%40mail.gmail.com.

Andy Ng

unread,
Feb 6, 2018, 5:21:35 AM2/6/18
to CAS Community, r...@tts.in
I see that :

@Override

    public void configureAuthenticationExecutionPlan(final AuthenticationEventExecutionPlan plan

    {

        LOGGER.debug("zzz Added file-based authentication handler");

    

    }

Do not have plan.registerAuthenticationHandler(myAuthenticationHandler()); Did you put it in? For at to work, it should be the below.
    @Override
    public void configureAuthenticationExecutionPlan(final AuthenticationEventExecutionPlan plan) {
        //if (feelingGoodOnAMondayMorning()) {
            plan.registerAuthenticationHandler(myAuthenticationHandler());
        //}
    }

feelingGoodOnAMondayMorning is just something to add if you want more, no need if you are just setting up for now.



it might also seems that you doesn't import the necessary  stuff into your pom.xml

I also was having this problem before, you can check the below for your reference:
https://groups.google.com/a/apereo.org/forum/#!topic/cas-user/EOCoiHo8zao

You say you see: org.apereo.cas.adaptors.generic, then thats means that class is actually missing org.apereo.cas.adaptors.generic,

And you might need to add the following to your pom.xml 

    <dependencies>
.......
        <dependency>
            <groupId>org.apereo.cas</groupId>
            <artifactId>cas-server-support-generic</artifactId>
            <version>${cas.version}</version>
        </dependency>
....... 
   </dependencies>

Do not know whether or not that is your problem, but you can try it if you haven't so.

Cheers,
- Andy
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/932d1df5-6217-4ab2-9212-781e146c4b03%40apereo.org.

Ramakrishna G

unread,
Feb 6, 2018, 5:53:13 AM2/6/18
to cas-...@apereo.org
Thankyou so much Man H. Your efforts are highly appreciated. Finally after debugging found the issue and it started working.

To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGST5P8bQiVUPF76_c9bSS_mc%3DCKLiY-58pvjbvRZPvOHW-ByA%40mail.gmail.com.

Man H

unread,
Feb 6, 2018, 7:52:35 AM2/6/18
to cas-...@apereo.org

Glad to hear that!
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

--
- Website: To view this discussion on the web visit

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5midTSSS-rFDH_mBJ7vcnane_vzx%3D4cPu5zUMiOuxkbXapg%40mail.gmail.com.

Andy Ng

unread,
Feb 6, 2018, 10:28:13 AM2/6/18
to CAS Community
Good to hear that you make it working!

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/efac8243-2b27-4a80-b89f-87c1c9ecc957%40apereo.org.
Reply all
Reply to author
Forward
0 new messages