Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate Entrust Certificates #168

Merged
merged 4 commits into from
Feb 6, 2017
Merged

Deprecate Entrust Certificates #168

merged 4 commits into from
Feb 6, 2017

Conversation

SidneyAllen
Copy link
Contributor

In 2017, Xero will begin deprecation of entrust certificates for Partner Apps. I've updates the base URL and removed the client_cert requirement and tested the example partner app.

You can read about this change in our Dev Center.
http://developer.xero.com/documentation/auth-and-limits/entrust-certificate-deprecation/

Thanks

In 2017, Xero has begun deprecation of entrust certificates - find out
more
http://developer.xero.com/documentation/auth-and-limits/entrust-certific
ate-deprecation/

Updates
1. changes the Partner base URL to api.xero.com
2. Sets client_cert arg equal to None in auth.py
3. removes client_cert references from runserver.py in partner example
4. updates README files and removes references to entrust certificates.
@romgar
Copy link
Collaborator

romgar commented Jan 26, 2017

I tested with these changes, works like a charm. Can be merged!

Edit: not sure anymore, see comment below.

@@ -336,7 +336,7 @@ class PartnerCredentials(PublicCredentials):
oauth_authorization_expires_at tells when the overall access
permissions expire (~10 year window)
"""
def __init__(self, consumer_key, consumer_secret, rsa_key, client_cert,
def __init__(self, consumer_key, consumer_secret, rsa_key, client_cert=None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docstring of this class should be updated regarding client_cert. It should say that this argument is no more needed regarding new Xero security policy, but stays for now to be backward-compatible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added note about client_cert 0b7a95e

@romgar
Copy link
Collaborator

romgar commented Jan 26, 2017

@SidneyAllen getting a The page you are attempting to access requires your browser to have a Secure Sockets Layer (SSL) client certificate that the Web server recognizes. when trying to renew my access token. Any idea?

As a side note, querying directly an endpoint (Organisations, Transactions, ...) works without SSL client certificate.

@avandehulsbeek
Copy link

@romgar FWIW, I haven't had any issues with this when renewing access tokens using this (running for a couple of days on an appengine instance).

@romgar
Copy link
Collaborator

romgar commented Jan 30, 2017

@avandehulsbeek my bad, I missed some changes. Works like a charm now.

👍 for this change! Any feedback @aidanlister @freakboy3742 ?

Mention that client_cert is no longer needed but remains for backwards
compatibility.
@SidneyAllen
Copy link
Contributor Author

Thanks @avandehulsbeek and @romgar

Appreciate you testing this and looking forward to seeing this merged.

xero/auth.py Outdated

2) client_cert is no longer needed regarding new Xero security policy,
but stays for now to be backward-compatible.
If you are still implementing Entrust Certificates you'll need
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this comment is completely right. If people are using pyxero after this merge, they can't use anymore Entrust certificates pair. I think the first sentence should be something more like: client_cert is no longer used regarding new Xero security policy, but stays for now for backward-compatibility. and remove If you are still [...] pair.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

removed second sentence
@romgar
Copy link
Collaborator

romgar commented Feb 1, 2017

Ready to be merged @aidanlister 👍

@romgar romgar merged commit 4b860c1 into freakboy3742:master Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants