Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: full id service #57

Open
wants to merge 636 commits into
base: master
Choose a base branch
from
Open

Draft: full id service #57

wants to merge 636 commits into from

Conversation

guimard
Copy link
Member

@guimard guimard commented Jun 13, 2024

DOn't merge for now, this PR just enables CI

// eslint-disable-next-line @typescript-eslint/promise-function-async
createKeypair(
type: 'longTerm' | 'shortTerm',
algorithm: 'ed25519' | 'curve25519'

Check notice

Code scanning / devskim

Generic: Hard-coded Elliptic Curve Note

Generic: Hard-coded Elliptic Curve
): { publicKey: string; privateKey: string; keyId: string } => {
if (algorithm === 'ed25519') {
return generateEdKeyPair()
} else if (algorithm === 'curve25519') {

Check notice

Code scanning / devskim

Generic: Hard-coded Elliptic Curve Note

Generic: Hard-coded Elliptic Curve
}

export const generateKeyPair = (
algorithm: 'ed25519' | 'curve25519'

Check notice

Code scanning / devskim

Generic: Hard-coded Elliptic Curve Note

Generic: Hard-coded Elliptic Curve
// Convert to unpadded Base64 URL encoded form
identifierHex = toBase64Url(identifierHex)

const algorithm = 'curve25519'

Check notice

Code scanning / devskim

Generic: Hard-coded Elliptic Curve Note

Generic: Hard-coded Elliptic Curve
"smtp_user": "",
"smtp_verify_certificate": true,
"smtp_sender": "",
"smtp_server": "localhost",

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling.

Do not leave debug code in production
"rate_limiting_window": 600000,
"rate_limiting_nb_requests": 100,
"redis_uri": "",
"server_name": "localhost",

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling.

Do not leave debug code in production
@@ -160,6 +160,46 @@
})
}

// TODO : Merge update and updateAnd into one function that takes an array of conditions as argument

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality

Suspicious comment
})
}
} else {
// TODO : implement signature verification. If the request doesn't have a client_secret or sid, it should be signed

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
} else if (response.status === 400) {
const ephemeralKey = await idServer.db.createKeypair(
'shortTerm',
'curve25519'

Check notice

Code scanning / devskim

Generic: Hard-coded Elliptic Curve

Generic: Hard-coded Elliptic Curve
BichraiX and others added 25 commits July 18, 2024 11:43
… upgrade to user account. Changed "tokenContent" to "TokenContent" from authentication for clarification and to distinguish it from matrix-identity-server.
…with openIDconnect, still need to add refresh token handling in register
feat : added a strict version of validateParameters
h1ppox99 and others added 30 commits August 16, 2024 11:39
fix : removed the fetch in /delete and replaced it with auxiliary function
…message, completed deactivate and added tests for it, modified SafeClientEvent typing
Added endpoint to deactivate an account
… before uiauthenticate, changed uiauthenticate to prevent obsolete jsoncontent call, added typecheckers
…ages deletion by batches of 10, finished delete_devices endpoint
feat : fixed store-invite with fetch to self and other mistakes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants