Remove refresh_token check for Keycloak compatibility
This commit is contained in:
parent
86414f17aa
commit
65bde6b0c8
|
@ -23,9 +23,9 @@ impl FromResponse for Expiring {
|
||||||
fn from_response(json: &Value) -> Result<Self, ParseError> {
|
fn from_response(json: &Value) -> Result<Self, ParseError> {
|
||||||
let obj = json.as_object().ok_or(ParseError::ExpectedType("object"))?;
|
let obj = json.as_object().ok_or(ParseError::ExpectedType("object"))?;
|
||||||
|
|
||||||
if obj.contains_key("refresh_token") {
|
// if obj.contains_key("refresh_token") {
|
||||||
return Err(ParseError::UnexpectedField("refresh_token"));
|
// return Err(ParseError::UnexpectedField("refresh_token"));
|
||||||
}
|
// }
|
||||||
|
|
||||||
let expires_in = obj.get("expires_in")
|
let expires_in = obj.get("expires_in")
|
||||||
.and_then(Value::as_i64)
|
.and_then(Value::as_i64)
|
||||||
|
|
Loading…
Reference in New Issue