コード例 #1
0
    def get_settings(attr, *args):
        """Override the logout url for Firefox Accounts."""

        val = get_oidc_fxa_setting(attr)
        if val is not None:
            return val
        return super(FXALogoutView, FXALogoutView).get_settings(attr, *args)
コード例 #2
0
    def get_settings(attr, *args):
        """Override the logout url for Firefox Accounts."""

        val = get_oidc_fxa_setting(attr)
        if val is not None:
            return val
        return import_from_settings(attr, *args)
コード例 #3
0
ファイル: views.py プロジェクト: Shibetendo64/kitsune
    def get_settings(attr, *args):
        """Override settings for Firefox Accounts.

        The default values for the OIDC lib are used for the SSO login in the admin
        interface. For Firefox Accounts we need to pass different values, pointing to the
        correct endpoints and RP specific attributes.
        """

        val = get_oidc_fxa_setting(attr)
        if val is not None:
            return val
        return super(FXAAuthenticateView, FXAAuthenticateView).get_settings(attr, *args)
コード例 #4
0
 def get_settings(attr, *args):
     """Override settings for Firefox Accounts Provider."""
     val = get_oidc_fxa_setting(attr)
     if val is not None:
         return val
     return super(FXAAuthBackend, FXAAuthBackend).get_settings(attr, *args)