/
shopify-sso.json
63 lines (62 loc) · 1.58 KB
/
shopify-sso.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"variables": {
"defaultTenantId": "d7d09513-a3f5-401c-9685-34ab6c552453",
"adminEmail": "monica@fusionauth.io",
"adminPassword": "password",
"shopifyAppId": "#{UUID()}",
"adminUserId": "00000000-0000-0000-0000-000000000001"
},
"apiKeys": [
{
"key": "bf69486b-4733-4470-a592-f1bfce7af580",
"description": "Standard development API key"
}
],
"requests": [
{
"method": "POST",
"url": "/api/application/#{shopifyAppId}",
"tenantId": "#{defaultTenantId}",
"body": {
"application": {
"name": "Shopify",
"oauthConfiguration": {
"authorizedRedirectURLs": ["https://store.xecurity.com/moas/broker/login/oauth/callback/20956"],
"enabledGrants": ["authorization_code"]
},
"registrationConfiguration": {
"enabled": true
}
}
}
},
{
"method": "POST",
"url": "/api/user/registration/#{adminUserId}",
"body": {
"user": {
"email": "#{adminEmail}",
"firstName": "Monica",
"lastName": "Hall",
"password": "#{adminPassword}",
"imageUrl": "https://local.fusionauth.io/images/doc-profile-pictures/photo-monica.png"
},
"registration": {
"applicationId": "#{FUSIONAUTH_APPLICATION_ID}",
"roles": [
"admin"
]
}
}
},
{
"method": "POST",
"url": "/api/user/registration/#{adminUserId}",
"body": {
"registration": {
"applicationId": "#{shopifyAppId}"
}
}
}
]
}