diff --git a/backend/oauth_connect.json b/backend/oauth_connect.json index 44ac5e7cce..0ed093e6d9 100644 --- a/backend/oauth_connect.json +++ b/backend/oauth_connect.json @@ -90,13 +90,5 @@ "extra_params": { "type": "web_server" } - }, - "zendesk": { - "auth_url": "https://zendesk.com/oauth/authorizations/new", - "token_url": "https://zendesk.com/oauth/tokens/new", - "scopes": [ - "read", - "write" - ] } } diff --git a/backend/src/oauth2.rs b/backend/src/oauth2.rs index 70aded9d4b..34f9223e24 100644 --- a/backend/src/oauth2.rs +++ b/backend/src/oauth2.rs @@ -948,15 +948,7 @@ fn oauth_redirect( query_string.append_pair(&key, &value); } } - // if ["gcal", "gdrive", "gsheets", "gcloud", "gmail"] - // .into_iter() - // .any(|x| x == name) - // { - // auth_url - // .query_pairs_mut() - // .append_pair("access_type", "offline") - // .append_pair("prompt", "consent"); - // } + set_cookie(&state, cookies); Ok(Redirect::to(auth_url.as_str())) }