Skip to content

Conversation

@MichaelGoberling
Copy link
Contributor

@MichaelGoberling MichaelGoberling commented Dec 5, 2024

Fixes adobe/aio-cli#697

We were always using credential type of 'entp' when subscribing to services, but it has to be 'oauth_server_to_server' for oauth credentials

I believe the extra code for handling an existing credential is for the case where the user's local config is out of date with the server, but truthfully didn't fully test this, just needed it to make sure the tests passed

@codecov
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (37a27ae) to head (85bdb91).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #85   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          540       543    +3     
  Branches        90        92    +2     
=========================================
+ Hits           540       543    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MichaelGoberling MichaelGoberling merged commit d78601a into master Dec 5, 2024
8 checks passed
@MichaelGoberling MichaelGoberling deleted the fix-scopes-not-attached branch December 5, 2024 17:25
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.

Service's scopes not attached to credentials when adding services through cli

4 participants