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/
|
.dart_tool/
|
||||||
.direnv
|
.direnv
|
||||||
secrets/
|
secret
|
24
.vscode/launch.json
vendored
24
.vscode/launch.json
vendored
|
@ -5,25 +5,19 @@
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "nexusbot",
|
"name": "matrix-oauth2oidc",
|
||||||
"program": "bin/nexusbot.dart",
|
"program": "bin/nexusbot.dart",
|
||||||
"args": [
|
"args": [
|
||||||
"--socket",
|
|
||||||
"./socket",
|
|
||||||
"--homeserver",
|
"--homeserver",
|
||||||
"https://matrix.federated.nexus",
|
"https://matrix.federated.nexus",
|
||||||
"--name",
|
"--jwtSecretFile",
|
||||||
"nexusbot",
|
"secret",
|
||||||
"--inviteTo",
|
"--issuer",
|
||||||
"#community:federated.nexus",
|
"http://localhost:8080",
|
||||||
"--adminRoom",
|
"--authorizeEndpoint",
|
||||||
"#admins:federated.nexus",
|
"http://localhost:4321/login",
|
||||||
"--successUri",
|
"--serviceDomain",
|
||||||
"https://federated.nexus/success",
|
"federated.nexus"
|
||||||
"--botPasswordFile",
|
|
||||||
"secrets/botPassword.txt",
|
|
||||||
"--smtpPasswordFile",
|
|
||||||
"secrets/smtpPassword.txt"
|
|
||||||
],
|
],
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "dart"
|
"type": "dart"
|
||||||
|
|
2
JUSTFILE
2
JUSTFILE
|
@ -5,4 +5,4 @@ build:
|
||||||
dart run build_runner build
|
dart run build_runner build
|
||||||
|
|
||||||
test:
|
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(
|
final response = await http.post(
|
||||||
settings.homeserver.replace(
|
settings.homeserver.replace(
|
||||||
path:
|
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(),
|
headers: await getHeaders(),
|
||||||
body: json.encode({
|
body: json.encode({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue