Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] #2421 - Setting up Certificate Pinning for Prod Server GeoT…
Browse files Browse the repository at this point in the history
…rust
  • Loading branch information
bleege committed Feb 11, 2016
1 parent adf83d3 commit a945265
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class MapboxEventManager {

private Context context = null;
private String accessToken = null;
private static final String MAPBOX_EVENTS_BASE_URL = "https://api.tiles.mapbox.com";
private static final String MAPBOX_EVENTS_BASE_URL = "https://api.mapbox.com";
private String eventsURL = MAPBOX_EVENTS_BASE_URL;

private String userAgent = MapboxEvent.MGLMapboxEventsUserAgent;
Expand Down Expand Up @@ -364,6 +364,8 @@ protected Void doInBackground(Void... voids) {
CertificatePinner certificatePinner = new CertificatePinner.Builder()
.add("cloudfront-staging.tilestream.net", "sha1/KcdiTca54HxWTV8VuAd67x8I=")
.add("cloudfront-staging.tilestream.net", "sha1//KDE76PP0DQBDcTnMFBv+efp4eg=")
.add("api.mapbox.com", "sha1/Uv71ooi32pyba+oLD7egnXm7/GQ=")
.add("api.mapbox.com", "sha1/hOP0d37/ZTSGgCSseE3DIZ1uSg0=")
.build();

OkHttpClient client = new OkHttpClient.Builder().certificatePinner(certificatePinner).build();
Expand Down

0 comments on commit a945265

Please sign in to comment.