google-code-export / rubycas-client

Automatically exported from code.google.com/p/rubycas-client
1 stars 1 forks source link

Incorrect documentation for overriding service_url #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Thank you for this program. It's great!

I am facing the following problem:

What steps will reproduce the problem?

If I enter my cas protected application and it redirects to the CAS server
login page I notice that the service param is bad. For example, my CAS
protected application is over a security channel (SSL). 

What is the expected output? What do you see instead?

I need to define the service, or the correct CAS protected url.
I hack the code, adding the following:

     def self.service_url(controller)
        unclean = @@service_url || guess_service(controller)
# FORCE service_url:
        unclean = "https://www.myservice.com/"
# END
        clean = remove_ticket_from_service_uri(unclean)
        logger.debug("Service URI without ticket is: #{clean}")
        clean
      end

I know the code is bad optimized but, as a test, it works good for me.

What version of the product are you using? On what operating system?

rubycas-client version 1.1.0
Linux Ubuntu Server 6.06

Please provide any additional information below.

I think that the problem is that @@service_url must map a CAS::Filter
attribute in order to be configured in enviroment.rb. Now this is not possible.

Thanks a lot!!
Roberto

P.S: Excuse my English 

Original issue reported on code.google.com by floyd...@gmail.com on 19 Sep 2007 at 3:29

GoogleCodeExporter commented 9 years ago
Sorry... I've found that I can configure the way I said:

CAS:Filter.service_url = "https://www.application.com"

But I neither saw it on the code nor in the documentation.

Thanks a lot... and excuse me
Roberto

Original comment by floyd...@gmail.com on 19 Sep 2007 at 3:37

GoogleCodeExporter commented 9 years ago
Thanks for pointing this out. In fact the documentation is completely wrong on 
this
-- it says that you can use server_name, but it looks like that parameter isn't 
even
used at all anymore. I've made the correction to the docs in subversion.

Original comment by matt.zuk...@gmail.com on 19 Sep 2007 at 4:30