Skip to content

Commit

Permalink
skip authorize yes/no form test
Browse files Browse the repository at this point in the history
  • Loading branch information
xerbalind committed Jul 18, 2024
1 parent 4331a5c commit 9c88038
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/controllers/oauth_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,12 @@ pub async fn authorize<'r>(
let client_description = client.description.clone();
let state = AuthState::from_req(client, req);
cookies.add_private(state.into_cookie()?);
Ok(template! {
"oauth/authorize.html";
authorize_post_url: String = uri!(do_authorize).to_string(),
client_description: String = client_description,
})
Ok(ensure_logged_in_and_redirect(cookies, uri!(grant_get)))
// Ok(template! {
// "oauth/authorize.html";
// authorize_post_url: String = uri!(do_authorize).to_string(),
// client_description: String = client_description,
// })
} else {
Err(AuthenticationError::Unauthorized(format!(
"client with id {} is not authorized to use redirect_uri '{}'",
Expand Down

0 comments on commit 9c88038

Please sign in to comment.