Template
1
0

feat: add supertokens

This commit is contained in:
2025-09-24 01:20:09 +02:00
parent 0d70749670
commit 99111b69eb
92 changed files with 1613 additions and 1141 deletions

View File

@@ -1,17 +1,17 @@
meta {
name: Get By ID
name: Get
type: http
seq: 2
}
get {
url: {{url}}/identities/:id
url: {{url}}/identity/:id
body: none
auth: inherit
}
params:path {
id: 16b88034-ca82-4a8e-9fe5-13bd0dd29b75
id:
}
settings {

32
.bruno/identity/Roles.bru Normal file
View File

@@ -0,0 +1,32 @@
meta {
name: Roles
type: http
seq: 4
}
put {
url: {{url}}/identity/:id/roles
body: json
auth: inherit
}
params:path {
id:
}
body:json {
[
{
"type": "add",
"roles": []
},
{
"type": "remove",
"roles": []
}
]
}
settings {
encodeUrl: true
}

View File

@@ -0,0 +1,43 @@
meta {
name: Update
type: http
seq: 4
}
put {
url: {{url}}/identity/:id
body: json
auth: inherit
}
params:path {
id:
}
body:json {
[
{
"type": "add",
"key": "",
"value": ""
},
{
"type": "push",
"key": "",
"values": ""
},
{
"type": "pop",
"key": "",
"values": ""
},
{
"type": "remove",
"key": ""
}
]
}
settings {
encodeUrl: true
}

View File

@@ -1,19 +1,21 @@
meta {
name: Code
type: http
seq: 2
seq: 3
}
get {
url: {{url}}/identities/login/code/:identityId/code/:codeId/:value
body: none
post {
url: {{url}}/identity/login/code
body: json
auth: inherit
}
params:path {
identityId: efefa471-905d-4702-bd0a-863d8cf70424
codeId: 7055b769-0814-47b8-836e-cfef2d8c2e68
value: 00597
body:json {
{
"deviceId": "",
"preAuthSessionId": "",
"userInputCode": ""
}
}
script:post-response {

View File

@@ -1,11 +1,11 @@
meta {
name: Email
type: http
seq: 1
seq: 2
}
post {
url: {{url}}/identities/login/email
url: {{url}}/identity/login/email
body: json
auth: inherit
}

View File

@@ -1,6 +1,6 @@
meta {
name: Login
seq: 2
seq: 3
}
auth {

View File

@@ -0,0 +1,21 @@
meta {
name: Sudo
type: http
seq: 1
}
post {
url: {{url}}/identities/login/sudo
body: json
auth: inherit
}
body:json {
{
"email": "john.doe@fixture.none"
}
}
settings {
encodeUrl: true
}

View File

@@ -1,11 +1,11 @@
meta {
name: Me
type: http
seq: 3
seq: 1
}
get {
url: {{url}}/identities/me
url: {{url}}/identity/me
body: none
auth: inherit
}

View File

@@ -1,25 +0,0 @@
meta {
name: Register
type: http
seq: 1
}
post {
url: {{url}}/identities
body: json
auth: inherit
}
body:json {
{
"name": {
"given": "Jane",
"family": "Doe"
},
"email": "jane.doe@fixture.none"
}
}
settings {
encodeUrl: true
}