Git Product home page Git Product logo

cas-jaspic's Introduction

About me

I was a JSF (JSR 372) and Security API (JSR 375) EG member, and am currently project lead for a number of Jakarta projects including Jakarta- Security, Authentication, Authorization, Faces and Expression Language. I’m the the co-creator of the popular OmniFaces library for JSF that was a 2015 Duke’s Choice Award winner, and I’m the author of two books: The Definitive Guide to JSF- and Pro CDI 2 in Java EE 8.

Pro CDI 2

Definitive Guide to JSF in Java EE 8

cas-jaspic's People

Stargazers

 avatar

Watchers

 avatar  avatar

cas-jaspic's Issues

Confused about 'CleanSubject'

According to my understanding, it's when application do 'request.logout()' that triggers the container to invoke 'CleanSubject', why here in this code it's doing 'this.lc.logout()' inside 'CleanSubject'. So which one of the two is expected to invoke the other?

ClassNotFoundException

I have built cas-jaspic from the latest source (r13) and copied the JAR file to 
my local glassfish's domain/<domainName>/lib/ext directory along with 
cas-client and commons-logging jars.

I have then configured a standalone instance in Glassfish (although I've seen 
this issue in other configs too) that uses the JASPIC provider as its default.

Putting together a very simple WAR to test things out results in a 
ClassNotFoundException.

Attached is a copy of the log file as well as the WAR file that I"m using.

Jarscan tells me that the class in question indeed does reside in the libs 
provided by Glassfish; perhaps there is a version issue that I'm not 
understanding?

I'm using JDK 1.6.0_26 on Windows with Glassfish 3.1 (also tried in 3.1.1).

Any direction or help you can offer is appreciated.

Original issue reported on code.google.com by [email protected] on 1 Aug 2011 at 8:02

Attachments:

JASPIC for WebServices

I could use JASPIC using CAS and glassfish and JSR 196.

I would like to test JSR 196 to use with Glassfish 3.1.1, but the documentation 
it's still in progress.

Please can someone give me how to activate it? I've created :

com.googlecode.cas.jaspic.soap.CasServerAuthModule

as Server provider in Glassfish console (Security->Message Security -> SOAP), 
but don't know how to use it from a web service.

I've tried to enable it by using this glassfish-ejb-jar.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-ejb-jar PUBLIC "-//GlassFish.org//DTD GlassFish Application 
Server 3.1 EJB 3.1//EN" "http://glassfish.org/dtds/glassfish-ejb-jar_3_1-1.dtd">
<glassfish-ejb-jar>
  <security-role-mapping>
    <role-name>administrador</role-name>
    <group-name>administrador</group-name>
  </security-role-mapping>
  <enterprise-beans>
    <ejb>
      <ejb-name>webServiceCAS</ejb-name>     
      <webservice-endpoint>
        <port-component-name>webServiceCAS</port-component-name>
        <message-security-binding auth-layer="SOAP" provider-id="casWSSAuthModule">
          <message-security>
            <message>
              <java-method>
                <method-name>*</method-name>
              </java-method>
            </message>
            <request-protection/>
            <response-protection/>
          </message-security>
        </message-security-binding>
      </webservice-endpoint>
    </ejb>
  </enterprise-beans>
</glassfish-ejb-jar>

where provider-id is the same name as I've previously created in glassfish.

What am I doing wrong?


Original issue reported on code.google.com by [email protected] on 26 Aug 2011 at 4:29

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.