Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/bot/src/storeMgr.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class StoreMgr {
}
try {
await this.store.set(did, JSON.stringify(data))
// console.log('Saved: ' + JSON.stringify(data))
} catch (e) {
console.log(e)
throw new Error(`issue writing to the database for ${did}. ${e}`)
Expand Down
10 changes: 5 additions & 5 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"author": "Patrick Gallagher <blockchainbuddha@gmail.com>",
"license": "MIT",
"dependencies": {
"@ceramicnetwork/3id-did-resolver": "^0.6.10",
"@ceramicnetwork/http-client": "^0.9.6",
"@ceramicnetwork/3id-did-resolver": "^1.2.6",
"@ceramicnetwork/http-client": "^1.0.6",
"@ceramicnetwork/key-did-resolver": "^0.2.2",
"@octokit/request": "^5.4.10",
"@stablelib/random": "^1.0.0",
"analytics-node": "^3.4.0-beta.3",
"did-jwt": "^4.9.0",
"dids": "^1.1.1",
"did-jwt": "^5.6.1",
"dids": "^2.1.0",
"js-sha256": "^0.9.0",
"key-did-provider-ed25519": "^1.0.0",
"key-did-provider-ed25519": "^1.1.0",
"node-fetch": "^2.6.1",
"redis": "^3.0.2",
"serverless-webpack": "^5.3.5",
Expand Down
5 changes: 3 additions & 2 deletions packages/server/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ provider:
stage: develop
region: us-east-2
stackTags:
IdentityLink: ${opt:stage, ''}
IdentityLink: ${opt:stage, 'dev'}
environment:
REDIS_URL:
"Fn::GetAtt": [ElasticCacheCluster, RedisEndpoint.Address]
Expand All @@ -25,6 +25,7 @@ provider:
TWITTER_CONSUMER_SECRET: ${self:custom.secrets.TWITTER_CONSUMER_SECRET}
TWITTER_ACCESS_TOKEN: ${self:custom.secrets.TWITTER_ACCESS_TOKEN}
TWITTER_ACCESS_TOKEN_SECRET: ${self:custom.secrets.TWITTER_ACCESS_TOKEN_SECRET}
CERAMIC_CLIENT_URL: ${self:custom.secrets.CERAMIC_CLIENT_URL}

# Enable auto-packing of external modules
custom:
Expand All @@ -35,7 +36,7 @@ custom:
packager: 'yarn' # Packager that will be used to package your external modules
config:
CACHE_INSTANCE_SIZE: cache.t2.micro
secrets: ${ssm:/aws/reference/secretsmanager/identitylink~true}
secrets: ${ssm:/aws/reference/secretsmanager/identitylink-${opt:stage, 'dev'}~true}

functions:
diddoc:
Expand Down
1 change: 1 addition & 0 deletions packages/server/src/api/github-verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class GithubVerifyHandler {
challengeCode = unwrappped.payload.challengeCode
did = unwrappped.did
} catch (e) {
console.log(e)
cb({ code: 500, message: 'error while trying to verify the JWS' })
this.analytics.trackVerifyGithub(body.jws, 500)
return
Expand Down
3 changes: 1 addition & 2 deletions packages/server/src/lib/githubMgr.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class GithubMgr {

let rawUrl, verification_url
if (!gistUrl) {
console.log('not this')
const result = await this.client('GET /users/:username/gists', {
username,
since: thirtyMinutesAgo.toISOString()
Expand All @@ -97,7 +96,7 @@ class GithubMgr {
rawUrl = gistUrl
}

console.log(rawUrl)
if (!rawUrl) throw new Error('Recent gist for verification not available')

let res
try {
Expand Down
5 changes: 1 addition & 4 deletions packages/utils/scripts/generateKeyPair.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ const { encode } = require("@stablelib/hex");
const { secretKey, publicKey } = generateKeyPairFromSeed(randomBytes(32));

console.log(encode(secretKey,true));
console.log(encode(publicKey,true));

//console.log((secretKey));
//console.log((publicKey));
console.log(encode(publicKey,true));
Loading