File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
app/deserializers/integrations/cults3d Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,11 @@ def canonicalize(uri)
31
31
class << self
32
32
def client
33
33
@@client ||= Graphlient ::Client . new (
34
- "https://#{ SiteSettings . cults3d_api_username } :#{ SiteSettings . cults3d_api_key } @cults3d.com/graphql" ,
35
- schema_path : "#{ File . dirname ( __FILE__ ) } /cults3d.json"
34
+ "https://cults3d.com/graphql" ,
35
+ schema_path : "#{ File . dirname ( __FILE__ ) } /cults3d.json" ,
36
+ headers : {
37
+ "Authorization" => "Basic #{ Base64 . strict_encode64 ( "#{ SiteSettings . cults3d_api_username } :#{ SiteSettings . cults3d_api_key } " ) . chomp } "
38
+ }
36
39
)
37
40
end
38
41
end
Original file line number Diff line number Diff line change 25
25
)
26
26
VCR . configure { |c | c . filter_sensitive_data ( "<CULTS3D_API_KEY>" ) { SiteSettings . cults3d_api_key } }
27
27
VCR . configure { |c | c . filter_sensitive_data ( "<CULTS3D_API_USERNAME>" ) { SiteSettings . cults3d_api_username } }
28
- VCR . configure { |c | c . filter_sensitive_data ( "<CULTS3D_BASIC_AUTH>" ) { Base64 . encode64 ( "#{ SiteSettings . cults3d_api_username } :#{ SiteSettings . cults3d_api_key } " ) . chomp } }
28
+ VCR . configure { |c | c . filter_sensitive_data ( "<CULTS3D_BASIC_AUTH>" ) { Base64 . strict_encode64 ( "#{ SiteSettings . cults3d_api_username } :#{ SiteSettings . cults3d_api_key } " ) . chomp } }
29
29
end
30
30
end
You can’t perform that action at this time.
0 commit comments