fmarier/django-browserid — comment on commit 3f28ae57d3cc2adf1c8665a7386aef21912ba6a2
File: django_browserid/auth.py line 69
By ozten:

Okay, this is the breakage your talking about ;)

I agree with your approach, but I think we should go one of two ways:
1) Keep the interface the same and use settings.PROTOCOL. This would be a required config and we'd bail if it didn't exist.
2) Change the authenticate interface to
def authenticate(self, assertion=None, audience=None):
Provide a function 'get_audience' which uses PROTOCOL, DOMAIN, PORT from settings. It's usage would be optional and apps can calculate their own audience value outside of this app.

@fmarier, What do you think?