-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into PYTHON-4927
- Loading branch information
Showing
34 changed files
with
262 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Create Release Branch | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch_name: | ||
description: The name of the new branch | ||
required: true | ||
version: | ||
description: The version to set on the branch | ||
required: true | ||
base_ref: | ||
description: The base reference for the branch | ||
push_changes: | ||
description: Whether to push the changes | ||
default: "true" | ||
|
||
concurrency: | ||
group: create-branch-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash -eux {0} | ||
|
||
jobs: | ||
create-branch: | ||
environment: release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: write | ||
outputs: | ||
version: ${{ steps.pre-publish.outputs.version }} | ||
steps: | ||
- uses: mongodb-labs/drivers-github-tools/secure-checkout@v2 | ||
with: | ||
app_id: ${{ vars.APP_ID }} | ||
private_key: ${{ secrets.APP_PRIVATE_KEY }} | ||
- uses: mongodb-labs/drivers-github-tools/setup@v2 | ||
with: | ||
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }} | ||
aws_region_name: ${{ vars.AWS_REGION_NAME }} | ||
aws_secret_id: ${{ secrets.AWS_SECRET_ID }} | ||
artifactory_username: ${{ vars.ARTIFACTORY_USERNAME }} | ||
- uses: mongodb-labs/drivers-github-tools/create-branch@v2 | ||
id: create-branch | ||
with: | ||
branch_name: ${{ inputs.branch_name }} | ||
version: ${{ inputs.version }} | ||
base_ref: ${{ inputs.base_ref }} | ||
push_changes: ${{ inputs.push_changes }} | ||
version_bump_script: hatch version | ||
evergreen_project: mongo-python-driver-release | ||
release_workflow_path: ./.github/workflows/release-python.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,24 +76,6 @@ For best performance on Python versions older than 2.7.8 install `backports.pbkd | |
|
||
.. _backports.pbkdf2: https://pypi.python.org/pypi/backports.pbkdf2/ | ||
|
||
MONGODB-CR | ||
---------- | ||
|
||
.. warning:: MONGODB-CR was deprecated with the release of MongoDB 3.6 and | ||
is no longer supported by MongoDB 4.0. | ||
|
||
Before MongoDB 3.0 the default authentication mechanism was MONGODB-CR, | ||
the "MongoDB Challenge-Response" protocol:: | ||
|
||
>>> from pymongo import MongoClient | ||
>>> client = MongoClient('example.com', | ||
... username='user', | ||
... password='password', | ||
... authMechanism='MONGODB-CR') | ||
>>> | ||
>>> uri = "mongodb://user:[email protected]/?authSource=the_database&authMechanism=MONGODB-CR" | ||
>>> client = MongoClient(uri) | ||
|
||
Default Authentication Mechanism | ||
-------------------------------- | ||
|
||
|
@@ -221,8 +203,7 @@ SASL PLAIN (RFC 4616) | |
|
||
MongoDB Enterprise Edition version 2.6 and newer support the SASL PLAIN | ||
authentication mechanism, initially intended for delegating authentication | ||
to an LDAP server. Using the PLAIN mechanism is very similar to MONGODB-CR. | ||
These examples use the $external virtual database for LDAP support:: | ||
to an LDAP server. These examples use the $external virtual database for LDAP support:: | ||
|
||
>>> from pymongo import MongoClient | ||
>>> uri = "mongodb://user:[email protected]/?authMechanism=PLAIN" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.