Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switched to OAuth2 for CG SaaS #45

Merged
merged 2 commits into from
Aug 20, 2020
Merged

Switched to OAuth2 for CG SaaS #45

merged 2 commits into from
Aug 20, 2020

Conversation

rockspore
Copy link
Contributor

The EdgeClient upon construction checks the management host and fetch the OAuth token if it is CG SaaS.

Note: To pass the unit tests, I exported a function from apigee package to allow modifying the OAuthURL. No product issue but open to better solutions.

Fix #44

@codecov
Copy link

codecov bot commented Aug 20, 2020

Codecov Report

Merging #45 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #45   +/-   ##
=======================================
  Coverage   80.26%   80.26%           
=======================================
  Files           7        7           
  Lines        1140     1140           
=======================================
  Hits          915      915           
  Misses        118      118           
  Partials      107      107           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82fbf00...b190519. Read the comment docs.

octetStream = "application/octet-stream"
libraryVersion = "0.1.0"
defaultBaseURL = "https://api.enterprise.apigee.com"
basicAuthHeader = "Basic ZWRnZWNsaTplZGdlY2xpc2VjcmV0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the required hard-coded basic auth to fetch the access token. It's a centralized credential.
Ref: https://docs.apigee.com/api-platform/system-administration/management-api-tokens#get-a-new-access-token

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that's wild. Ok, thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed.

@theganyo theganyo merged commit 6bd6728 into master Aug 20, 2020
@theganyo theganyo deleted the issue-44 branch August 20, 2020 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retiring Basic Auth
2 participants