Closed jakefeasel closed 6 years ago
Looks good and works for me. A couple of comments:
opBasePath
and expects:"authorization_endpoint": opBasePath + "/oauth2/authorize", "token_endpoint": opBasePath + "/oauth2/access_token", "revocation_endpoint": opBasePath + "/oauth2/token/revoke"
Which would not work with Google: "authorization_endpoint": "https://accounts.google.com/o/oauth2/v2/auth" "token_endpoint": "https://oauth2.googleapis.com/token" "revocation_endpoint": "https://oauth2.googleapis.com/revoke"
Restructes the code significantly in order to make it easier to implement a first-party client, including silent / automatic token renewal.
Changes session checking at the AS by using authorization code flow instead of implicit, and to be triggered from XHR requests rather than frequent polling.