Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
MaeIsBad committed Dec 19, 2023
1 parent 1a8ce58 commit 6b749b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub async fn jwks(app_data: Data<AppData>) -> HttpResponse {
}

impl jwks {
pub const ENDPOINT: &str = "/.well-known/jwks.json";
pub const ENDPOINT: &'static str = "/.well-known/jwks.json";
}

/// Generate a new jwt token for a given audience. For `client_credentials` the audience is found in the post body
Expand All @@ -36,7 +36,7 @@ async fn token(app_data: Data<AppData>, token_request: Either<Json<TokenRequest>
}

impl token {
pub const ENDPOINT: &str = "/oauth/token";
pub const ENDPOINT: &'static str = "/oauth/token";
}

/// Logs the "user" in and returns an auth code which can be exchanged for a token
Expand All @@ -53,7 +53,7 @@ pub async fn login(app_data: Data<AppData>, login_request: Json<LoginRequest>) -
.body(serde_json::to_string(&LoginResponse { code }).expect("Failed to serialize login response to json"))
}
impl login {
pub const ENDPOINT: &str = "/oauth/login";
pub const ENDPOINT: &'static str = "/oauth/login";
}

/// List all audience-permissions mappings present in local implementation
Expand Down

0 comments on commit 6b749b9

Please sign in to comment.