[GODRIVER-702] Auth error Created: 14/Dec/18  Updated: 27/Oct/23  Resolved: 04/Jan/19

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: xiaohan Assignee: Kristofer Brandow (Inactive)
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

golang 1.1.0
driver:master



 Description   

mongo_url : mongodb://abcd:abc%40abc@127.0.0.1:4002

 

code:

info := config.EngRds.Info()

m := DealRedisInfo(fmt.Sprintf("%s", info))
c := config.EngMgo.Database("rules").Collection("RedisInfo")
ctx, _ := context.WithTimeout(context.Background(), 5*time.Second)

one, err := c.InsertOne(ctx, m)
fmt.Println(one, err)

 

 

 

error:

    <nil> auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.



 Comments   
Comment by Kristofer Brandow (Inactive) [ 04/Jan/19 ]

Closing due to inactivity.

Comment by Kristofer Brandow (Inactive) [ 19/Dec/18 ]

xiaohan, can you attempt to use the connection string you provided with the mongo shell that ships with the database? It uses similar connection string parsing as the Go driver.

--Kris

Comment by xiaohan [ 19/Dec/18 ]

hi kris.brandow   I can use the client (Robo 3T 1.2.1) connection to work normally

 

Comment by Kristofer Brandow (Inactive) [ 17/Dec/18 ]

Hi xiaohan,

Do these credentials work when you use them with the shell?

--Kris

Generated at Thu Feb 08 08:34:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.