Skip to content

Commit c488ace

Browse files
committed
chore(noAuth): changes as per new naming
1 parent 9054fa9 commit c488ace

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ authenticator = BasicAuthenticator(<your_username>, <your_password>)
3636
This indicates that IAM token authentication is to be used. Users can pass in a `apikey` and the SDK will generate a Bearer Auth header to send with requests to the service.
3737

3838
```py
39-
from ibm_cloud_sdk_core.authenticators import IamAuthenticator
39+
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
4040

4141
authenticator = IAMAuthenticator(<your_apikey>)
4242
```

ibm_cloud_sdk_core/authenticators/no_auth_authenticator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .authenticator import Authenticator
1818

1919
class NoAuthAuthenticator(Authenticator):
20-
authentication_type = 'noauth'
20+
authentication_type = 'noAuth'
2121

2222
def validate(self):
2323
pass

ibm_cloud_sdk_core/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def contruct_authenticator(config):
172172
client_id=config.get('client_id'),
173173
client_secret=config.get('client_secret'),
174174
disable_ssl_verification=config.get('auth_disable_ssl'))
175-
elif auth_type == 'noauth':
175+
elif auth_type == 'noAuth':
176176
authenticator = NoAuthAuthenticator()
177177

178178
return authenticator

test/test_no_auth_authenticator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
def test_no_auth_authenticator():
99
authenticator = NoAuthAuthenticator()
1010
assert authenticator is not None
11-
assert authenticator.authentication_type == 'noauth'
11+
assert authenticator.authentication_type == 'noAuth'
1212

1313
authenticator.validate()
1414

0 commit comments

Comments
 (0)