Compare commits
No commits in common. "74a634c642f74c3ec165d77f4b5dcb9247fdae53" and "eadf305174dd50005f2c16b3ba9d5e8479024df9" have entirely different histories.
74a634c642
...
eadf305174
4 changed files with 12 additions and 18 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
|||
.dart_tool/
|
||||
.direnv
|
||||
secrets/
|
||||
secret
|
24
.vscode/launch.json
vendored
24
.vscode/launch.json
vendored
|
@ -5,25 +5,19 @@
|
|||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "nexusbot",
|
||||
"name": "matrix-oauth2oidc",
|
||||
"program": "bin/nexusbot.dart",
|
||||
"args": [
|
||||
"--socket",
|
||||
"./socket",
|
||||
"--homeserver",
|
||||
"https://matrix.federated.nexus",
|
||||
"--name",
|
||||
"nexusbot",
|
||||
"--inviteTo",
|
||||
"#community:federated.nexus",
|
||||
"--adminRoom",
|
||||
"#admins:federated.nexus",
|
||||
"--successUri",
|
||||
"https://federated.nexus/success",
|
||||
"--botPasswordFile",
|
||||
"secrets/botPassword.txt",
|
||||
"--smtpPasswordFile",
|
||||
"secrets/smtpPassword.txt"
|
||||
"--jwtSecretFile",
|
||||
"secret",
|
||||
"--issuer",
|
||||
"http://localhost:8080",
|
||||
"--authorizeEndpoint",
|
||||
"http://localhost:4321/login",
|
||||
"--serviceDomain",
|
||||
"federated.nexus"
|
||||
],
|
||||
"request": "launch",
|
||||
"type": "dart"
|
||||
|
|
2
JUSTFILE
2
JUSTFILE
|
@ -5,4 +5,4 @@ build:
|
|||
dart run build_runner build
|
||||
|
||||
test:
|
||||
curl --unix-socket ./socket http:/root -X POST -d '{"email": "foo", "username": "bar"}'
|
||||
oauth2c http://localhost:8080 --client-id yourclientid --scopes openid --grant-type authorization_code --auth-method none --response-mode query
|
|
@ -43,7 +43,7 @@ class ApiHelper {
|
|||
final response = await http.post(
|
||||
settings.homeserver.replace(
|
||||
path:
|
||||
"_matrix/client/v3/rooms/${await getRoomId(settings.adminRoom)}/send/m.room.message/${getTxn()}",
|
||||
"_matrix/client/v3/rooms/${getRoomId(settings.adminRoom)}/send/m.room.message/${getTxn()}",
|
||||
),
|
||||
headers: await getHeaders(),
|
||||
body: json.encode({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue