safaacar / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Provide support for arbitrary user attributes in CAS response #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi

I work on a SSO project with CAS versus rubycas-server and I would like
produce multiple type of answers for the xml return by cas to servies.

<cas: serviceResponse ........
    <cas: authenticationSuccess ..
    <cas: user .....
    <cas: room by example

My question is how to do that.

My idea is to implement a template system. Each template has a
<template>.ini definition who define the attributes to export.

I modify the (views.rb) service_validate(template_name) to generate an
adaptive xml answer to service.

I think to get the attributes (LDAP) in controllers.rb (@users_info)
and use it in views.rb to generate xml file.

Am I wrong ?

TACK sébastien

Original issue reported on code.google.com by mrt...@gmail.com on 10 Mar 2008 at 1:59

GoogleCodeExporter commented 9 years ago
Support for this (arbitrary CAS attributes) was recently added in 
RubyCAS-Client (in
version 2.0), but this is not yet supported by the server. Hopefully you should 
see
this functionality added in the upcoming 0.7.0 release. Most likely it'll be a 
bit
simpler than what you're implementing -- probably just something you do in a 
custom
authenticator, since you'd likely be pulling your arbitrary attributes from the
original data source that you're already accessing in your authenticator.

Original comment by matt.zuk...@gmail.com on 10 Mar 2008 at 8:02

GoogleCodeExporter commented 9 years ago

Original comment by matt.zuk...@gmail.com on 10 Mar 2008 at 8:02

GoogleCodeExporter commented 9 years ago
Hi 

How the script views.rb access to authenticator content please ?
Like this CASServer::Authenticators::MRT.infos (@infos is a attr_reader of the 
class
CASServer::Authenticators::MRT )
Sebastien TACK

Original comment by mrt...@gmail.com on 12 Mar 2008 at 11:12

GoogleCodeExporter commented 9 years ago
The view doesn't have anything to do with the authenticator. Data is submitted 
from
the form to the authenticator by means of the main controller.

Original comment by matt.zuk...@gmail.com on 12 Mar 2008 at 4:29

GoogleCodeExporter commented 9 years ago
This is a dupe of
http://code.google.com/p/rubycas-server/issues/detail?id=10&sort=stars&colspec=I
D%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Stars

Original comment by matt.zuk...@gmail.com on 4 Apr 2008 at 8:28