unauthorize a profile when I try to login with Google or Facebook. DelegatedClientAuthenticationHandler.java

37 views
Skip to first unread message

Fernando Gomez

unread,
Aug 19, 2020, 8:43:10 AM8/19/20
to CAS Community
Hello!!! I hope you can guide me a little: I need to be able to step on and modify the:
DelegatedClientAuthenticationHandler.java
To be able to unauthorize a profile when I try to login with Google or Facebook.
But I can't get it to compile.
I mount it in my project in the path: /cas-overlay-template/src/main/java/org/apereo/cas/support/pac4j/authentication/handler/support/DelegatedClientAuthenticationHandler.java
And I am attaching my pom.xml file, in case it can help.

I am using CAS Version: 6.2.1 and Pac4j Version 4.0.3

Here I leave the compilation errors even though I have the dependencies in my pom.xml
errors.PNG
pom.xml

Ray Bon

unread,
Aug 19, 2020, 12:38:10 PM8/19/20
to cas-...@apereo.org
Fernando,

Why are you using a pom file?
Cas and cas-overlay-template are built with gradle.

If packages are missing, then you must be missing a dependency. Checkout the cas project and search it with grep.

Ray
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I respectfully acknowledge that my place of work is located within the ancestral, traditional and unceded territory of the Songhees, Esquimalt and WSÁNEĆ Nations.

Fernando Gomez

unread,
Aug 19, 2020, 3:33:44 PM8/19/20
to CAS Community, Ray Bon
Hello, Ray... really thank you for answering me, I was using maven since that is how we received the project, but I can migrate to Gradle, we will do it and I will tell you later how it was and see if that way I can do what we need.

Fernando Gomez

unread,
Sep 3, 2020, 12:08:45 PM9/3/20
to CAS Community, Fernando Gomez, Ray Bon
Very well, I already migrated the whole project to Gradle, what I need is the following, it is something basic, then from there I will do more things, but I need to be able to overwrite, the DelegatedClientAuthenticationHandler.java, and I do not, add a log, that is, I need be able to modify it as i need, but i must, so create name space in my project: cas/src/main/java/org/apereo/cas/support/pac4j/authentication/handler/support
The same structure that is in CAS, then I have the original DelegatedClientAuthenticationHandler.java there, and I should be able to modify it at ease, but I have not been able to resolve the dependencies, even though I add them in my build.gradle

My build.gradle file, and show the dependencies that I add here.

buildgradle.PNG



As you can see, I can't compile the java, since the dependencies are broken  

Cap.PNG
Could you guide me a bit how to do to be able to overwrite that java?  

Stay tuned

Thank you very much in advance



Ray Bon

unread,
Sep 3, 2020, 12:47:22 PM9/3/20
to fgf200...@gmail.com, cas-...@apereo.org
Fernando,

I clone the cas repo so that I can perform searches and greps on it locally. To find out what packages you need search for a missing class.

rbon@rhea:~$ find tmp/apereo/cas -name ClientCredential.java
tmp/apereo/cas/support/cas-server-support-pac4j-core/src/main/java/org/apereo/cas/authentication/principal/ClientCredential.java

So this means you have to include the package: cas-server-support-pac4j-core

Ray

On Thu, 2020-09-03 at 09:08 -0700, Fernando Gomez wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
Reply all
Reply to author
Forward
0 new messages