Skip to content

Commit

Permalink
Enable oauth code authentication support
Browse files Browse the repository at this point in the history
Fix #9 
* Enable legacy oauth support in netprofiler service
* Disable auth detection in netprofiler service
  • Loading branch information
gwenblum authored Oct 23, 2024
1 parent 9c30197 commit 50e61a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion steelscript/netprofiler/core/netprofiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ def __init__(self, host, port=None, auth=None):
"""
super(NetProfiler, self).__init__("profiler", host, port,
auth=auth,
versions=[APIVersion("1.0")],override_services_api='/api/common/1.0/services')
versions=[APIVersion("1.0")],
enable_auth_detection = False,
supports_auth_basic=True,
supports_auth_oauth=True,
override_services_api='/api/common/1.0/services')

self.api = _api1.Handler(self)

Expand Down

0 comments on commit 50e61a9

Please sign in to comment.