Commit 3b8de1e6 authored by echel0n's avatar echel0n
Browse files

Release v9.3.71

parent 874b9884
# Changelog
- * f12bdcd - 2018-09-08: Release v9.3.70
- * eedd912 - 2018-09-08: Release v9.3.71
- * cf75694a - 2018-09-08: Release v9.3.70
- * d1aa98d - 2018-09-08: Pre-Release v9.3.70.dev2
- * f805a60 - 2018-09-08: Added real-time SSO session handling for WebUI. Token exchange performed to get offline token for API access.
- * 4027b39 - 2018-09-06: Application oAuth token now saved to config as a JSON string
......
......@@ -4,7 +4,7 @@ import json
import time
from urlparse import urljoin
from oauthlib.oauth2 import MissingTokenError, InvalidClientIdError, TokenExpiredError
from oauthlib.oauth2 import MissingTokenError, InvalidClientIdError, TokenExpiredError, InvalidGrantError
from requests_oauthlib import OAuth2Session
import sickrage
......@@ -72,7 +72,10 @@ class API(object):
'client_secret': self.client_secret,
}
self.token = self.session.refresh_token(self.token_url, **extras)
try:
self.token = self.session.refresh_token(self.token_url, **extras)
except InvalidGrantError as e:
self.token = {}
@staticmethod
def throttle_hook(response, **kwargs):
......
......@@ -134,6 +134,7 @@ class BaseHandler(RequestHandler):
<body>
<button onclick="window.location='{webroot}/logs/';">View Log(Errors)</button>
<button onclick="window.location='{webroot}/home/restart?force=1';">Restart SiCKRAGE</button>
<button onclick="window.location='{webroot}/logout';">Logout</button>
<h2>Error</h2>
<p>{error}</p>
<h2>Traceback</h2>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment