change userinfo endpoint method

This commit is contained in:
Denys Konovalov 2021-08-09 22:22:30 +02:00
parent 96719feed7
commit 1f8e4bbd8c

@ -235,7 +235,7 @@ async fn get_keycloak_userinfo(token: String) -> Result<KeycloakUser, Box<dyn Er
Ok(resp)
}
#[get("/", data = "<credentials>")]
#[post("/", data = "<credentials>")]
async fn get_userinfo(credentials: Json<Credentials>) -> Result<Json<KeycloakUser>, status::Unauthorized<()>> {
let credentials = credentials.into_inner();
let keycloak_resp = get_keycloak_token(