Skip to content

Commit

Permalink
rebrand from nVotes to Sequent Tech (#192)
Browse files Browse the repository at this point in the history
Rebrands the whole repository from nVotes to Sequent Tech, changing all references in code, documentation, comments and file names. This rebranding includes the renaming of all the repositories too.
  • Loading branch information
edulix committed Apr 5, 2022
1 parent 819f071 commit bb0f552
Show file tree
Hide file tree
Showing 156 changed files with 605 additions and 605 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ort.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2014-2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2014-2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
name: ORT licensing
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
postgres:
image: postgres:12
env:
POSTGRES_USER: authapi
POSTGRES_PASSWORD: authapi
POSTGRES_DB: authapi
POSTGRES_USER: iam
POSTGRES_PASSWORD: iam
POSTGRES_DB: iam
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand Down Expand Up @@ -73,11 +73,11 @@ jobs:
- name: coverage
run: |
cd authapi
python manage.py migrate --settings=authapi.test_settings
python manage.py loaddata --settings=authapi.test_settings initial
python manage.py test --settings=authapi.test_settings --failfast --nocapture
python -m coverage run --source='.' manage.py test --settings=authapi.test_settings
cd iam
python manage.py migrate --settings=iam.test_settings
python manage.py loaddata --settings=iam.test_settings initial
python manage.py test --settings=iam.test_settings --failfast --nocapture
python -m coverage run --source='.' manage.py test --settings=iam.test_settings
env:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
2 changes: 1 addition & 1 deletion .ort-data/curations-dir/bsd_license.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
---
Expand Down
2 changes: 1 addition & 1 deletion .ort-data/curations-dir/distlib.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
- id: "PyPI::distlib"
Expand Down
2 changes: 1 addition & 1 deletion .ort-data/curations-dir/drangandroptouch.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
- id: "dragandroptouch"
Expand Down
2 changes: 1 addition & 1 deletion .ort-data/curations-dir/fractionjs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
- id: "NPM::fraction.js"
Expand Down
2 changes: 1 addition & 1 deletion .ort-data/curations-dir/java.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
- id: "Maven:javax.cache:cache-api"
Expand Down
2 changes: 1 addition & 1 deletion .ort-data/curations-dir/jszip.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
- id: "NPM::jszip"
Expand Down
2 changes: 1 addition & 1 deletion .ort-data/curations-dir/psycopg2-binary.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
- id: "PyPI::psycopg2-binary"
Expand Down
2 changes: 1 addition & 1 deletion .ort-data/curations-dir/pycryptodomex.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
- id: "PyPI::pycryptodomex"
Expand Down
2 changes: 1 addition & 1 deletion .ort-data/curations-dir/reportlab.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
- id: "PyPI::reportlab"
Expand Down
2 changes: 1 addition & 1 deletion .ort-data/curations-dir/rng-js.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
- id: "NPM::rng-js"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
#
# SPDX-License-Identifier: AGPL-3.0-only
- id: "Yarn::agora-gui-booth"
- id: "Yarn::voting-booth"
curations:
comment: "This package needs to be downloaded from git"
vcs:
type: "git"
url: "https://github.com/agoravoting/agora-gui-common.git"
url: "https://github.com/sequentech/common-ui.git"
revision: "4.0.1"
2 changes: 1 addition & 1 deletion .ort-data/disclosure_document.ftl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[#--
SPDX-FileCopyrightText: 2020 HERE Europe B.V.
SPDX-FileCopyrightText: 2020-2021 Bosch.IO GmbH
SPDX-FileCopyrightText: 2021 Agora Voting SL
SPDX-FileCopyrightText: 2021 Sequent Tech Inc
SPDX-License-Identifier: AGPL-3.0-only
--]
Expand Down
2 changes: 1 addition & 1 deletion .ort-data/license-classifications.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
# SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
# SPDX-FileCopyrightText: 2020-2021 Bosch.IO GmbH
#
# SPDX-License-Identifier: AGPL-3.0-only
Expand Down
2 changes: 1 addition & 1 deletion .ort-data/rules.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2021 Agora Voting SL <contact@nvotes.com>
* SPDX-FileCopyrightText: 2021 Sequent Tech Inc <legal@sequentech.io>
* SPDX-FileCopyrightText: 2019 HERE Europe B.V.
*
* SPDX-License-Identifier: AGPL-3.0-only
Expand Down
4 changes: 2 additions & 2 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Víctor Ramirez de la Corte <virako.9 AT gmail DOT com>
Eduardo Robles Elvira <edulix AT agoravoting DOT com>
Eduardo Robles Elvira <edulix@sequentech.io>
Daniel García Moreno <danigm AT wadobo DOT com>
David Ruescas <david AT agoravoting DOT com>
David Ruescas <david@sequentech.io>
4 changes: 2 additions & 2 deletions Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ django views and should provide a login method.
Add a new auth method is simple. You only need to add a new python module
with a class in it.

The module should be inside the authapi/authmethods/ folder and this module
The module should be inside the iam/authmethods/ folder and this module
name should starts with an 'm\_', for example if we want to add a DNIe auth
method we can add the module authapi/authmethods/m\_dnie.py.
method we can add the module iam/authmethods/m\_dnie.py.

To register the new method you should call the register\_method function,
for example:
Expand Down
64 changes: 32 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# authapi [![tests_badge]][tests_link] [![coverage_badge]][coverage_link]
# iam [![tests_badge]][tests_link] [![coverage_badge]][coverage_link]

[tests_badge]: https://github.com/agoravoting/authapi/workflows/Test%20python/badge.svg
[tests_link]: https://github.com/agoravoting/authapi/actions?query=workflow%3A%22Test+python%22
[coverage_badge]: https://coveralls.io/repos/agoravoting/authapi/badge.svg?branch=master
[coverage_link]: https://coveralls.io/r/agoravoting/authapi?branch=master
[tests_badge]: https://github.com/sequentech/iam/workflows/Test%20python/badge.svg
[tests_link]: https://github.com/sequentech/iam/actions?query=workflow%3A%22Test+python%22
[coverage_badge]: https://coveralls.io/repos/sequentech/iam/badge.svg?branch=master
[coverage_link]: https://coveralls.io/r/sequentech/iam?branch=master

# Introduction

The authapi is an isolated server-side component that provides
The iam is an isolated server-side component that provides
authentication and authorization primitives. It's is completely decoupled
from agora-core, and it's ignorant of concepts like "election", "vote" or
"agora", even though its primarily developed with Agora voting use-case in
from sequent-core, and it's ignorant of concepts like "election", "vote" or
"sequent", even though its primarily developed with Agora voting use-case in
mind. It can be used for other services, completely unrelated to elections.

An Authentication Event (or auth-event) is an important concept in the
authapi. Let's explain it with an example: imagine you're creating a single
iam. Let's explain it with an example: imagine you're creating a single
election, where you have a given census of electors, and you authenticate the
electors sending a SMS code to their mobile phones. In that case, the election
will have an associated event auth in an authapi, configured with a
will have an associated event auth in an iam, configured with a
census, configured to use the "SMS-code" authentication method, and the SMS
provider credentials details needed to be able to send emails.

Another important entity in authapi is an "User". Each auth-user can be uniquely
Another important entity in iam is an "User". Each auth-user can be uniquely
referenced by the user-id. The users have some authorization to act over some
objects using ACLs.

Expand All @@ -41,7 +41,7 @@ kind of object.

1. Download from the git repository if you haven't got a copy
```
$ git clone https://github.com/agoravoting/authapi && cd authapi
$ git clone https://github.com/sequentech/iam && cd iam
```

2. Install package and its dependencies
Expand All @@ -54,9 +54,9 @@ kind of object.
3. Create postgres database:
```
$ sudo su postgres
$ createuser -P authapi
$ psql -tAc "ALTER USER authapi PASSWORD '<SOMEPASSWORD>';" -U postgres
$ createdb -O authapi authapi
$ createuser -P iam
$ psql -tAc "ALTER USER iam PASSWORD '<SOMEPASSWORD>';" -U postgres
$ createdb -O iam iam
```

4. Create scheme and load initial data. This command create username admin with
Expand Down Expand Up @@ -86,19 +86,19 @@ Optional. Added some plugin:

# Run unit tests

You can run unit tests by having a local `authapi` postgresql database, managed by the user
`authapi` with password `authapi` and then executing the `runtests.sh` script:
You can run unit tests by having a local `iam` postgresql database, managed by the user
`iam` with password `iam` and then executing the `runtests.sh` script:

$ sudo su postgres
$ psql -tAc "CREATE USER authapi WITH PASSWORD 'authapi';" -U postgres
$ psql -tAc "ALTER USER authapi CREATEDB;" -U postgres
- $ psql -tAc "CREATE DATABASE authapi OWNER authapi;" -U postgres
$ psql -tAc "CREATE USER iam WITH PASSWORD 'iam';" -U postgres
$ psql -tAc "ALTER USER iam CREATEDB;" -U postgres
- $ psql -tAc "CREATE DATABASE iam OWNER iam;" -U postgres
$ exit
(authapi-env) ~/authapi $ ./runtests.sh
(iam-env) ~/iam $ ./runtests.sh

# Tecnical details

Technically, authapi should:
Technically, iam should:
* allow migrations
* implement unit-tests for the API calls

Expand All @@ -123,8 +123,8 @@ Basic Database tables:
* object_id: string (255) object related to which the user is granted permission to id
(default=0) mean permission in all id

The authapi is extensible using modules. The mudile can extend authapi in
different entry points defined in authapi, providing:
The iam is extensible using modules. The mudile can extend iam in
different entry points defined in iam, providing:

* new authentication methods
* new pipeline
Expand Down Expand Up @@ -378,7 +378,7 @@ Request:

{
"dni": "11111111H",
"mail": "test@agoravoting.com",
"mail": "test@sequentech.io",
"tlf": "+34666666666",
"code": "deadbeef"
}
Expand All @@ -403,25 +403,25 @@ Description: Get ids auth-event of request user

# Utils Commands

* Look at agora-admin.py script in [agora-tools](https://github.com/agoravoting/agora-tools/)
* Look at sequent-admin.py script in [misc-tools](https://github.com/sequentech/misc-tools/)

# License

Copyright (C) 2015 Agora Voting SL and/or its subsidiary(-ies).
Contact: legal@agoravoting.com
Copyright (C) 2015 Sequent Tech Inc and/or its subsidiary(-ies).
Contact: legal@sequentech.io

This file is part of the authapi module of the Agora Voting project.
This file is part of the iam module of the Sequent Tech project.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.

Commercial License Usage
Licensees holding valid commercial Agora Voting project licenses may use this
Licensees holding valid commercial Sequent Tech project licenses may use this
file in accordance with the commercial license agreement provided with the
Software or, alternatively, in accordance with the terms contained in
a written agreement between you and Agora Voting SL. For licensing terms and
conditions and further information contact us at legal@agoravoting.com .
a written agreement between you and Sequent Tech Inc. For licensing terms and
conditions and further information contact us at legal@sequentech.io .

GNU Affero General Public License Usage
Alternatively, this file may be used under the terms of the GNU Affero General
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions authapi/api/admin.py → iam/api/admin.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# This file is part of authapi.
# Copyright (C) 2014-2020 Agora Voting SL <contact@nvotes.com>
# This file is part of iam.
# Copyright (C) 2014-2020 Sequent Tech Inc <legal@sequentech.io>

# authapi is free software: you can redistribute it and/or modify
# iam is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License.

# authapi is distributed in the hope that it will be useful,
# iam is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.

# You should have received a copy of the GNU Affero General Public License
# along with authapi. If not, see <http://www.gnu.org/licenses/>.
# along with iam. If not, see <http://www.gnu.org/licenses/>.

from django import forms
from django.contrib import admin
Expand Down
10 changes: 5 additions & 5 deletions authapi/api/decorators.py → iam/api/decorators.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# This file is part of authapi.
# Copyright (C) 2014-2020 Agora Voting SL <contact@nvotes.com>
# This file is part of iam.
# Copyright (C) 2014-2020 Sequent Tech Inc <legal@sequentech.io>

# authapi is free software: you can redistribute it and/or modify
# iam is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License.

# authapi is distributed in the hope that it will be useful,
# iam is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.

# You should have received a copy of the GNU Affero General Public License
# along with authapi. If not, see <http://www.gnu.org/licenses/>.
# along with iam. If not, see <http://www.gnu.org/licenses/>.

from django.contrib.auth.models import User
from django.http import HttpResponseForbidden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"username": "admin",
"is_staff": true,
"is_superuser": true,
"email": "admin@agoravoting.com",
"email": "admin@sequentech.io",
"is_active": true,
"last_login": "2015-02-16T17:41:28+00:00"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"required_on_authentication":false
},
{
"name":"Acepto las <a href=\"https://agoravoting.com/#tos\">condiciones de servicio</a>",
"name":"Acepto las <a href=\"https://sequentech.io/#tos\">condiciones de servicio</a>",
"type":"bool",
"required":true,
"required_on_authentication":false
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# This file is part of authapi.
# Copyright (C) 2021 Agora Voting SL <agora@agoravoting.com>
# This file is part of iam.
# Copyright (C) 2021 Sequent Tech Inc <legal@sequentech.io>

# authapi is free software: you can redistribute it and/or modify
# iam is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License.

# authapi is distributed in the hope that it will be useful,
# iam is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.

# You should have received a copy of the GNU Affero General Public License
# along with authapi. If not, see <http://www.gnu.org/licenses/>.
# along with iam. If not, see <http://www.gnu.org/licenses/>.

from django.core.management.base import BaseCommand, CommandError
from django.db import connection
Expand All @@ -20,7 +20,7 @@

class Command(BaseCommand):
'''
Delete all the voters (manually cascading on related tables) in authapi
Delete all the voters (manually cascading on related tables) in iam
for a specific election (event-id)
'''
# NOTES:
Expand Down
Loading

0 comments on commit bb0f552

Please sign in to comment.