Skip to content

feat: add authentication_type method to authenticators #127

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

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

padamstx
Copy link
Member

This commit adds a new method ('authentication_type()') to
the Authenticator base class, and each authenticator implementation
(subclasses of Authenticator).
The function will return a string indicating the
authenticator type ('basic', 'iam', etc.).
This brings the python core in line with the Go, Java and Node cores.

@padamstx padamstx requested review from dpopp07 and rmkeezer October 15, 2021 19:54
@codecov
Copy link

codecov bot commented Oct 15, 2021

Codecov Report

Merging #127 (c45f65a) into main (52ab020) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #127      +/-   ##
==========================================
+ Coverage   99.50%   99.52%   +0.01%     
==========================================
  Files          22       22              
  Lines         815      835      +20     
==========================================
+ Hits          811      831      +20     
  Misses          4        4              
Impacted Files Coverage Δ
ibm_cloud_sdk_core/authenticators/authenticator.py 88.23% <100.00%> (+13.23%) ⬆️
...oud_sdk_core/authenticators/basic_authenticator.py 100.00% <100.00%> (ø)
..._core/authenticators/bearer_token_authenticator.py 100.00% <100.00%> (ø)
...sdk_core/authenticators/container_authenticator.py 100.00% <100.00%> (ø)
...loud_sdk_core/authenticators/cp4d_authenticator.py 100.00% <100.00%> (ø)
...cloud_sdk_core/authenticators/iam_authenticator.py 100.00% <100.00%> (ø)
...d_sdk_core/authenticators/no_auth_authenticator.py 100.00% <100.00%> (ø)
ibm_cloud_sdk_core/get_authenticator.py 100.00% <100.00%> (ø)

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 52ab020...c45f65a. Read the comment docs.

Copy link
Contributor

@rmkeezer rmkeezer left a comment

Choose a reason for hiding this comment

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

LGTM

This commit adds a new method ('authentication_type()') to
the Authenticator base class, and each authenticator implementation
(subclasses of Authenticator).
The function will return a string indicating the
authenticator type ('basic', 'iam', etc.).
This brings the python core in line with the Go, Java and Node cores.
@padamstx padamstx force-pushed the update-authenticators branch from cbbcc1f to c45f65a Compare October 15, 2021 20:18
Copy link

@dpopp07 dpopp07 left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@padamstx padamstx merged commit c56ce73 into main Oct 15, 2021
@padamstx padamstx deleted the update-authenticators branch October 15, 2021 20:27
ibm-devx-sdk pushed a commit that referenced this pull request Oct 15, 2021
# [3.12.0](v3.11.3...v3.12.0) (2021-10-15)

### Features

* add authentication_type method to authenticators ([#127](#127)) ([c56ce73](c56ce73))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 3.12.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants