semvec/pypi-packages huggingface dataset:
matrix-synapse-saml-mozilla 0.2.6
An Mozilla-flavoured SAML MXID mapper for Synapse

# Synapse Mozilla SAML MXID Mapper

A Synapse plugin module which allows users to choose their username when they
first log in.

## Installation

This plugin can be installed via [PyPi](https://pypi.org):

```
pip install matrix-synapse-saml-mozilla
```

### Config

Add the following in your Synapse config:

```yaml
   saml2_config:
     user_mapping_provider:
       module: "matrix_synapse_saml_mozilla.SamlMappingProvider"
```

Also, under the HTTP client `listener`, configure an `additional_resource` as per
the below:

```yaml
listeners:
  - port: <port>
    type: http

    resources:
      - names: [client]

    additional_resources:
      "/_matrix/saml2/pick_username":
        module: "matrix_synapse_saml_mozilla.pick_username_resource"
```

### Configuration Options

Synapse allows SAML mapping providers to specify custom configuration through the
`saml2_config.user_mapping_provider.config` option.

Currently the following options are supported:

 * `use_name_id_for_remote_uid`: if set to `False`, we will use the SAML
   attribute mapped to `uid` to identify the remote user instead of the `NameID`
   from the assertion. `True` by default.

 * `bad_domain_file`: should point a file containing a list of domains (one
   per line); users who have an email address on any of these domains will be
   blocked from registration.

 * `bad_domain_list`: an alternative to `bad_domain_file` allowing the list of
   bad domains to be specified inline in the config.

   If both `bad_domain_file` and `bad_domain_list` are specified, the two lists
   are merged.

## Implementation notes

The login flow looks something like this:

![login flow](https://raw.githubusercontent.com/matrix-org/matrix-synapse-saml-mozilla/master/doc/login_flow.svg?sanitize=true)

## Development and Testing

This repository uses `tox` to run linting and tests.

### Linting

Code is linted with the `flake8` tool. Run `tox -e lint` to check for linting
errors in the codebase.

### Tests

This repository uses `unittest` to run the tests located in the `tests`
directory. They can be ran with `tox -e tests`.

### Making a release

```
git tag vX.Y
python3 setup.py sdist
twine upload dist/matrix-synapse-saml-mozilla-X.Y.tar.gz
git push origin vX.Y
```
django-email-foundation 0.0.13
django-email-foundation is a Django package for help you to create emails using the "zurb foundation" technologies

# django-email-foundation

[![django-email-foundation in Travis](https://travis-ci.org/APSL/django-email-foundation.svg?branch=master)](https://travis-ci.org/APSL/django-email-foundation)
[![django-email-foundation in PyPi](https://img.shields.io/pypi/v/django-email-foundation.svg)](https://pypi.python.org/pypi/django-email-foundation)
[![django-email-foundation in Readthedocs](https://readthedocs.org/projects/django-email-foundation/badge/?version=latest)](http://django-email-foundation.readthedocs.org/en/latest/?badge=latest)


Package that helps you build email templates easier in your projects.

## Description

It's a Django package that helps you to build email templates for your email engine sender (we recommend you to use `django-yubin`_).
It uses the `zurb foundation for emails`_ templates and `node` packages such as `inky` or `panini`.

* [django-yubin](https://github.com/APSL/django-yubin)
* [zurb foundation for emails](https://foundation.zurb.com/emails/docs/)

This gives you some commands and functionality to integrate *zurb foundation for emails* in your Django project.

* *install_requires*: A command for install the required node packages, such as *inky*, *panini*, *gulp*, etc., in your project.
* *create_basic_structure*: It creates in your project an essential folder tree which contains the basic layout and folders
  such as *pages*, *helpers* and *partials*, used by panini_.
* *email_builder*: Run a *gulp* process to watch your source templates, build and move to your target email folder. It compiles
  the sources using panini_ and inky_ for the best compatibility with the major email clients.

Also, it gives you a Django view to preview the build templates and use a custom fixed context for each one, useful for your
designers that may edit the layouts.

* [panini](https://www.npmjs.com/package/panini)
* [inky](https://www.npmjs.com/package/inky)

## Documentation

Please read the full documentation at [readthedocs](http://django-email-foundation.readthedocs.org/en/latest/)