change userinfo endpoint method
This commit is contained in:
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(
|
||||
|
Reference in New Issue
Block a user