feat: add supertokens
This commit is contained in:
@@ -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
32
.bruno/identity/Roles.bru
Normal 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
|
||||
}
|
||||
43
.bruno/identity/Update.bru
Normal file
43
.bruno/identity/Update.bru
Normal 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
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
meta {
|
||||
name: Login
|
||||
seq: 2
|
||||
seq: 3
|
||||
}
|
||||
|
||||
auth {
|
||||
|
||||
21
.bruno/identity/login/sudo.bru
Normal file
21
.bruno/identity/login/sudo.bru
Normal 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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
21
.bruno/workspace/create.bru
Normal file
21
.bruno/workspace/create.bru
Normal file
@@ -0,0 +1,21 @@
|
||||
meta {
|
||||
name: Create
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/workspace
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "valkyr"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
8
.bruno/workspace/folder.bru
Normal file
8
.bruno/workspace/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Workspace
|
||||
seq: 2
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user