Remove refresh_token check for Keycloak compatibility

This commit is contained in:
xenia 2019-08-18 22:49:21 -04:00
parent 86414f17aa
commit 65bde6b0c8
1 changed files with 3 additions and 3 deletions

View File

@ -23,9 +23,9 @@ impl FromResponse for Expiring {
fn from_response(json: &Value) -> Result<Self, ParseError> {
let obj = json.as_object().ok_or(ParseError::ExpectedType("object"))?;
if obj.contains_key("refresh_token") {
return Err(ParseError::UnexpectedField("refresh_token"));
}
// if obj.contains_key("refresh_token") {
// return Err(ParseError::UnexpectedField("refresh_token"));
// }
let expires_in = obj.get("expires_in")
.and_then(Value::as_i64)