File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
unit_tests/sources/declarative/auth Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -81,13 +81,16 @@ def test_refresh_request_headers(self):
81
81
config = config ,
82
82
token_expiry_date = "{{ config['token_expiry_date'] }}" ,
83
83
refresh_request_headers = {
84
- "Authorization" : "<TOKEN> " ,
84
+ "Authorization" : "Basic {{ [config['client_id'], config['client_secret']] | join(':') | base64encode }} " ,
85
85
"Content-Type" : "application/x-www-form-urlencoded" ,
86
86
},
87
87
parameters = parameters ,
88
88
)
89
89
headers = oauth .build_refresh_request_headers ()
90
- expected = {"Authorization" : "<TOKEN>" , "Content-Type" : "application/x-www-form-urlencoded" }
90
+ expected = {
91
+ "Authorization" : "Basic c29tZV9jbGllbnRfaWQ6c29tZV9jbGllbnRfc2VjcmV0" ,
92
+ "Content-Type" : "application/x-www-form-urlencoded" ,
93
+ }
91
94
assert headers == expected
92
95
93
96
oauth = DeclarativeOauth2Authenticator (
You can’t perform that action at this time.
0 commit comments