This commit is contained in:
Maix0 2024-06-27 14:17:10 +02:00
parent 7a6f5d3ad3
commit d84be9dc6e
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View file

@ -1 +1,4 @@
/target /target
envfile
.direnv
.target

View file

@ -211,7 +211,7 @@ async fn main() {
// initialize tracing // initialize tracing
let oauth = BasicClient::new(ClientId::new(unwrap_env!("CLIENT_ID"))) let oauth = BasicClient::new(ClientId::new(unwrap_env!("CLIENT_ID")))
.set_redirect_uri( .set_redirect_uri(
RedirectUrl::new("http://localhost:9911/auth/callback".to_string()).unwrap(), RedirectUrl::new("https://t.maix.me/auth/callback".to_string()).unwrap(),
) )
.set_introspection_url( .set_introspection_url(
IntrospectionUrl::new("https://api.intra.42.fr/oauth/token/info".to_string()) IntrospectionUrl::new("https://api.intra.42.fr/oauth/token/info".to_string())
@ -271,7 +271,7 @@ async fn main() {
.with_state(state); .with_state(state);
// run our app with hyper // run our app with hyper
let listener = tokio::net::TcpListener::bind("127.0.0.1:3000") let listener = tokio::net::TcpListener::bind("127.0.0.1:9911")
.await .await
.unwrap(); .unwrap();
tracing::info!("listening on {}", listener.local_addr().unwrap()); tracing::info!("listening on {}", listener.local_addr().unwrap());