From 47fce256ef702e10a8a818e644074bd8dd0b4f67 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Fri, 14 May 2021 11:31:21 +0200 Subject: [PATCH] [OAuth] Finish commenting for now --- src/oauth.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/oauth.rs b/src/oauth.rs index a875b63..ac5ba98 100644 --- a/src/oauth.rs +++ b/src/oauth.rs @@ -89,6 +89,7 @@ fn get_client<E: Copy>(conf: &Config, prefix: &str, error_value: E) -> Result<Ba return Ok(client); } +// FIXME Merge with get_access_token_password if https://github.com/ramosbugs/oauth2-rs/issues/142 is accepted pub fn get_access_token_client<E: Copy>(conf: &Config, prefix: &str, error_value: E, unauth_value: E) -> Result<BasicTokenResponse, E> { let scopes: Vec<String> = match get_optional(&conf, &full_key(vec![prefix, "scopes"])) { Some(v) => v, @@ -117,6 +118,7 @@ pub fn get_access_token_client<E: Copy>(conf: &Config, prefix: &str, error_value } } +// FIXME Merge with get_access_token_client if https://github.com/ramosbugs/oauth2-rs/issues/142 is accepted pub fn get_access_token_password<E: Copy>(conf: &Config, prefix: &str, username: String, password: String, error_value: E, unauth_value: E) -> Result<BasicTokenResponse, E> { let scopes: Vec<String> = match get_optional(&conf, &full_key(vec![prefix, "scopes"])) { Some(v) => v, -- GitLab