Skip to content

Commit

Permalink
Merge branch 'master' into fix/universal-bearer-auth-conns
Browse files Browse the repository at this point in the history
  • Loading branch information
soniqua authored Sep 27, 2024
2 parents 00f39f8 + 3ea95a2 commit 89167b7
Show file tree
Hide file tree
Showing 10 changed files with 376 additions and 79 deletions.
10 changes: 10 additions & 0 deletions client-templates/bitbucket-server-bearer-auth/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,16 @@
"scheme": "bearer",
"token": "${BITBUCKET_PAT}"
}
},
{
"//": "used to validate credentials",
"method": "GET",
"path": "/rest/api/1.0/projects/:project/repos/:repo/permissions/search",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "bearer",
"token": "${BITBUCKET_PAT}"
}
}
]
}
11 changes: 11 additions & 0 deletions client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,17 @@
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to validate credentials",
"method": "GET",
"path": "/rest/api/1.0/projects/:project/repos/:repo/permissions/search",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
}
]
}
6 changes: 6 additions & 0 deletions client-templates/gitlab/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,12 @@
"method": "any",
"path": "/snykgit/*",
"origin": "${GIT_CLIENT_URL}"
},
{
"//": "get token information to check scope",
"method": "GET",
"path": "/api/v4/personal_access_tokens/self",
"origin": "https://${GITLAB}"
}
]
}
10 changes: 10 additions & 0 deletions defaultFilters/bitbucket-server-bearer-auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,16 @@
"scheme": "bearer",
"token": "${BITBUCKET_PAT}"
}
},
{
"//": "used to validate credentials",
"method": "GET",
"path": "/rest/api/1.0/projects/:project/repos/:repo/permissions/search",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "bearer",
"token": "${BITBUCKET_PAT}"
}
}
]
}
11 changes: 11 additions & 0 deletions defaultFilters/bitbucket-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,17 @@
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to validate credentials",
"method": "GET",
"path": "/rest/api/1.0/projects/:project/repos/:repo/permissions/search",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
}
]
}
6 changes: 6 additions & 0 deletions defaultFilters/gitlab.json
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,12 @@
"method": "any",
"path": "/snykgit/*",
"origin": "${GIT_CLIENT_URL}"
},
{
"//": "get token information to check scope",
"method": "GET",
"path": "/api/v4/personal_access_tokens/self",
"origin": "https://${GITLAB}"
}
]
}
36 changes: 0 additions & 36 deletions test/fixtures/accept/bitbucket-server-bearer-auth.json

This file was deleted.

39 changes: 0 additions & 39 deletions test/fixtures/accept/bitbucket-server.json

This file was deleted.

Loading

0 comments on commit 89167b7

Please sign in to comment.