diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2019-10-03 15:22:07 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2019-10-03 15:22:07 +0200 |
commit | de88de73ad9d13cc2a54668aa4bc6523c196ffa9 (patch) | |
tree | e46fa083635b12388acefc2950ebccb54f4c5253 /plugins/authenticator/shotwell | |
parent | b57c8088c3dad237b04bb792c6dade9c470ce9fd (diff) |
New upstream version 0.30.7upstream/0.30.7
Diffstat (limited to 'plugins/authenticator/shotwell')
-rw-r--r-- | plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala | 4 | ||||
-rw-r--r-- | plugins/authenticator/shotwell/OAuth1Authenticator.vala | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala b/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala index ea4d9ce..82448e2 100644 --- a/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala +++ b/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala @@ -51,6 +51,10 @@ namespace Publishing.Authenticator.Shotwell.Flickr { var ctx = WebKit.WebContext.get_default(); ctx.register_uri_scheme("shotwell-auth", this.on_shotwell_auth_request_cb); + + var mgr = ctx.get_security_manager(); + mgr.register_uri_scheme_as_secure("shotwell-auth"); + mgr.register_uri_scheme_as_cors_enabled("shotwell-auth"); } public override void on_page_load() { diff --git a/plugins/authenticator/shotwell/OAuth1Authenticator.vala b/plugins/authenticator/shotwell/OAuth1Authenticator.vala index 399b66f..39752ec 100644 --- a/plugins/authenticator/shotwell/OAuth1Authenticator.vala +++ b/plugins/authenticator/shotwell/OAuth1Authenticator.vala @@ -12,7 +12,7 @@ namespace Publishing.Authenticator.Shotwell.OAuth1 { protected Publishing.RESTSupport.OAuth1.Session session; protected Spit.Publishing.PluginHost host; - public Authenticator(string api_key, string api_secret, Spit.Publishing.PluginHost host) { + protected Authenticator(string api_key, string api_secret, Spit.Publishing.PluginHost host) { base(); this.host = host; |