Hello, Robert! On 29/04/10 03:32, Robert Neville wrote: > base_config.sa_auth.request_classifier = my_custom_classifier > base_config.sa_auth.identifiers = [FLASH_AUTHN_PLUGIN] > base_config.sa_auth.challengers = [FLASH_AUTHN_PLUGIN] > > Am I not overwriting the default behavior that way? How does repoze > know that requests classified as "flash" use one challenger and should > otherwise use something else? Since it looks like identifiers is an > array, doesn't there need to be an entry for the default set of > identifiers and challengers or are those baked in somehow, i.e. > something like: > base_config.sa_auth.challengers = [FLASH_AUTHN_PLUGIN, DEFAULT_THINGGY] > or something like that? >
TG2 uses repoze.what-quickstart [1], which is a plugin that sets up repoze.who and repoze.what in one go. It configures the repoze.who FriendlyFormPlugin [2] as the first challenger and first identifier, so there's no need to add it explicitly in TG2. Then, any identifiers or challengers set in app_cfg.py will be appended. FriendlyFormPlugin advertises itself as a browser-specific plugin, so you don't have to say that it's a plugin for browsers. That way, you're not changing anything in the default behavior. You're just adding support for Flash clients. People using browsers won't notice any difference. HTH, [1] http://code.gustavonarea.net/repoze.what-quickstart/ [2] http://code.gustavonarea.net/repoze.who-friendlyform/ -- Gustavo Narea <xri://=Gustavo>. -- 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.

