{"id":14956442,"url":"https://github.com/mongodb/mongosql-auth-java","last_synced_at":"2025-11-11T21:14:13.056Z","repository":{"id":45957947,"uuid":"89936399","full_name":"mongodb/mongosql-auth-java","owner":"mongodb","description":"A MySQL authentication plugin for Java that implements the client-side of MongoDB authentication mechanisms supported by mongosqld","archived":false,"fork":false,"pushed_at":"2023-04-10T12:48:06.000Z","size":97,"stargazers_count":8,"open_issues_count":1,"forks_count":10,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-01-29T09:43:38.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.mongodb.com/products/bi-connector","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongodb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-01T15:32:43.000Z","updated_at":"2023-10-21T09:37:09.000Z","dependencies_parsed_at":"2024-08-23T00:05:53.990Z","dependency_job_id":"c88e8eca-dda6-4bdf-ab99-28673a75fbd7","html_url":"https://github.com/mongodb/mongosql-auth-java","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fmongosql-auth-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fmongosql-auth-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fmongosql-auth-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fmongosql-auth-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb","download_url":"https://codeload.github.com/mongodb/mongosql-auth-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237088408,"owners_count":19253565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T13:13:04.634Z","updated_at":"2025-10-19T07:31:03.152Z","avatar_url":"https://github.com/mongodb.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongosql-java-auth\nA MySQL authentication plugin that implements the client-side of MongoDB-supported authentication mechanisms, including\n\n* SCRAM-SHA-1\n* SCRAM-SHA-256\n* PLAIN\n* GSSAPI (Kerberos)\n\n## Usage\n\nInclude this library in the classpath.  The Maven coordinates are:\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.mongodb\u003c/groupId\u003e\n        \u003cartifactId\u003emongosql-auth\u003c/artifactId\u003e\n        \u003cversion\u003e1.2.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\nNext, add a reference to the authentication plugin via the MySQL connection string:\n\n    jdbc:mysql://127.0.0.1:3307?useSSL=false\u0026authenticationPlugins=org.mongodb.mongosql.auth.plugin.MongoSqlAuthenticationPlugin\n\nOptionally, specify the authentication mechanism via a query parameter on the user name.  The default mechanism is SCRAM-SHA-1.  \nFor example:\n\n    username?mechanism=PLAIN   \n\nOptionally, specify the authentication source via a query parameter on the user name.  The default source is \"admin\" for \nSCRAM-SHA-1 and MONGODB-CR, and \"$external\" for PLAIN and GSSAPI. For example:\n\n    username?source=somedb\n\nOptionally, if using GSSAPI, specify the service name via a query parameter on the user name.  The default service name is \"mongosql\". For example:\n\n    username?mechanism=GSSAPI\u0026serviceName=myservicename\n\n## Notes\n\n* The SCRAM-SHA-1 and SCRAM-SHA-256 mechanisms hash the passwords in the client plugin, so it can be used on an unencrypted connection without exposing the password (however, subsequent communication over that channel will be unencrypted).\n* The PLAIN mechanism sends the password in cleartext, so should only be used on an encrypted connection.\n* The GSSAPI mechanism sends the end-user's credentials to the mongosqld - allowing mongosqld to reuse those credentials to access MongoDB.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb%2Fmongosql-auth-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb%2Fmongosql-auth-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb%2Fmongosql-auth-java/lists"}