Ken
10/29/2021, 10:27 PMbattk
10/29/2021, 10:59 PMKen
11/01/2021, 5:08 PMKen
11/01/2021, 5:16 PMbattk
11/01/2021, 5:19 PMbattk
11/01/2021, 5:19 PMKen
11/01/2021, 5:21 PMKen
11/01/2021, 5:27 PMKen
11/01/2021, 5:36 PMKen
11/01/2021, 5:38 PMbattk
11/01/2021, 5:53 PMbattk
11/01/2021, 5:54 PMKen
11/01/2021, 5:55 PMbattk
11/01/2021, 5:56 PMKen
11/01/2021, 5:56 PMbattk
11/01/2021, 5:56 PMKen
11/01/2021, 5:57 PMbattk
11/01/2021, 5:57 PMbattk
11/01/2021, 5:58 PMKen
11/01/2021, 5:59 PMbattk
11/01/2021, 5:59 PMbattk
11/01/2021, 5:59 PMKen
11/01/2021, 6:00 PMbattk
11/01/2021, 6:00 PMbattk
11/01/2021, 6:01 PMKen
11/01/2021, 6:01 PMbattk
11/01/2021, 6:02 PMbattk
11/01/2021, 6:02 PMKen
11/01/2021, 6:04 PMKen
11/01/2021, 6:07 PMvar options = {
method: 'POST',
url: '<https://youraccount.auth0.com/api/v2/connections>',
headers: {authorization: 'Bearer ABCD'},
data: '{ "name": "digitalocean", "strategy": "oauth2", "options": { "client_id", "YOUR-DIGITAL-OCEAN-CLIENT-ID", "client_secret": "YOUR-DIGITAL-OCEAN-CLIENT-SECRET", "authorizationURL": "<https://cloud.digitalocean.com/v1/oauth/authorize>", "tokenURL": "<https://cloud.digitalocean.com/v1/oauth/token>", "scope": ["read"], "scripts": { "fetchUserProfile": "function(accessToken, ctx, cb) { request.get(\'<https://api.digitalocean.com/v2/account>\', { headers: { \'Authorization\': \'Bearer \' + accessToken } }, function(e, r, b) { if (e) return cb(e); if (r.statusCode !== 200 ) return cb(new Error(\'StatusCode: \' + r.statusCode)); var profile = JSON.parse(b).account; profile.user_id = profile.uuid; cb(null, profile); });}'
};
Ken
11/01/2021, 6:07 PMbattk
11/01/2021, 6:09 PMKen
11/01/2021, 6:10 PMbattk
11/01/2021, 6:10 PMbattk
11/01/2021, 6:10 PMKen
11/01/2021, 6:11 PMKen
11/01/2021, 10:10 PMKen
11/01/2021, 10:11 PMKen
11/01/2021, 10:13 PMKen
11/01/2021, 10:13 PMbattk
11/01/2021, 10:14 PMbattk
11/01/2021, 10:14 PMKen
11/01/2021, 10:32 PMKen
11/01/2021, 10:32 PM