Skip to content

Conversation

@wtrocki
Copy link
Member

@wtrocki wtrocki commented Oct 22, 2024

Description

Integration with Credentials module in Atlas CLI

WIP - Intention is to provide demo for authentication capability.
In PR I have flagged number of areas that will need to be done for proper integration.
PR will not be merged, but it can be used as base for future Auth Integration

Testing

  1. Create profile /bin/atlas config edit --profile auth-test --debug
[auth-test]
output = 'json'
ops_manager_url = 'https://cloud-dev.mongodb.com'
org_id = '6707a96bc2b066602a4dfdcc'
project_id = '670ce177f33cea212ea202a5'
public_api_key = 'your sa id'
private_api_key = 'your sa secret'

or setup profile using cli

/bin/atlas config init --profile auth-test
? Service Account Client ID: ****************
? Service Account Secret: [? for help] ************************
😘 
  1. Run API call (command)
./bin/atlas clusters list --profile auth-test --debug

Result:

{"links":[{"href":"https://cloud-dev.mongodb.com/api/atlas/v2/groups/670ce177f33cea212ea202a5/clusters?includeCount=true&includeDeletedWithRetainedBackups=false&pageNum=1&itemsPerPage=100","rel":"self"}],"results":[],"totalCount":0}
{
  "links": [
    {
      "href": "https://cloud-dev.mongodb.com/api/atlas/v2/groups/670ce177f33cea212ea202a5/clusters?includeCount=true\u0026includeDeletedWithRetainedBackups=false\u0026pageNum=1\u0026itemsPerPage=100",
      "rel": "self"
    }
  ],
  "results": [],
  "totalCount": 0
}

@wtrocki wtrocki changed the title POC: SDK based authentication CLOUDP-279932: SDK based authentication Oct 24, 2024
@fmenezes fmenezes added the WIP Work in progress label Nov 21, 2024
@gssbzn
Copy link
Contributor

gssbzn commented Dec 9, 2024

@wtrocki good to close this PoC?

@wtrocki wtrocki closed this Dec 9, 2024
@wtrocki wtrocki deleted the oauth-poc branch December 9, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants