Hi Christoph,

I know how to use a customer identity.py, I already use it to allow authentication by ldap, imap, openid, etc.,
as you see in my entry_points.txt:

[turbogears.identity.provider]
sqlalchemy = sicer.lib.identity:SferaSqlAlchemyIdentityProvider
imap = sicer.lib.identity:SferaSqlAlchemyIdentityProvider
openid = sicer.lib.identity:SferaSqlAlchemyIdentityProvider
bogus = sicer.lib.identity:BogusIdentityProvider
ldap = sicer.lib.identity:SaLdapIdentityProvider

But I think this case is a little bit different because I have to get authentication without show login.kid
unless the authentication fail.
I don't know how to avoid to show the login.kid template.


j



Christoph Zwerschke wrote:
Am 08.11.2011 12:42, schrieb jo:
I would like to use both authentication systems; i.e. sso authentication
and default soprovider authentication when the user is not present into
local database (users).

You can create your own sso identity provider by subclassing soprovider.SqlObjectIdentityProvider and overriding the validate_identity() method.

You need to set your provider in app.cfg, like:

identity.provider = 'sso'

And create an entry point "sso" in setup.py:

entry_points = {
'console_scripts': [
'start-yourprojectname = yourprojectname.command:start',
],
'turbogears.identity.provider': [
'sso = yourprojectname.ssoprovider:SSOIdentityProvider',
],
},

-- Christoph



--
Jose Soares
Sferacarta Net Via Bazzanese 69
40033 Casalecchio di Reno
Bologna - Italy
Ph  +39051591054
fax +390516131537
web:www.sferacarta.com

Le informazioni contenute nella presente mail ed in ogni eventuale file 
allegato sono riservate e, comunque, destinate esclusivamente alla persona o 
ente sopraindicati, ai sensi del decreto legislativo 30 giugno 2003, n. 196. La 
diffusione, distribuzione e/o copiatura della mail trasmessa, da parte di 
qualsiasi soggetto diverso dal destinatario, sono vietate. La correttezza, 
l’integrità e la sicurezza della presente mail non possono essere garantite. Se 
avete ricevuto questa mail per errore, Vi preghiamo di contattarci 
immediatamente e di eliminarla. Grazie.

This communication is intended only for use by the addressee, pursuant to 
legislative decree 30 June 2003, n. 196. It may contain confidential or 
privileged information. You should not copy or use it to disclose its contents 
to any other person. Transmission cannot be guaranteed to be error-free, 
complete and secure. If you are not the intended recipient and receive this 
communication unintentionally, please inform us immediately and then delete 
this message from your system. Thank you.

--
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to