summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-09 14:55:03 -0600
committermo khan <mo@mokhan.ca>2025-06-09 14:55:03 -0600
commitc3527d0ecea1dbc005f11d1912b0451b2660c889 (patch)
tree4929769d3c6201dc37868ef990218d36671eefc5 /src/lib.rs
parentf22f53a71ef972684b7d8f9a18ee871467beed7d (diff)
refactor: remove non-essential metadata
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f23c4a2..1231503 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -55,7 +55,7 @@ pub mod http {
pub fn start(&self) {
let listener = TcpListener::bind(self.config.bind_addr.clone()).unwrap();
- println!("OAuth2 STS Server listening on {}", self.config.bind_addr);
+ println!("Listening on {}", self.config.bind_addr);
for stream in listener.incoming() {
match stream {
@@ -168,14 +168,8 @@ pub mod http {
"issuer": self.config.issuer_url,
"authorization_endpoint": format!("{}/authorize", self.config.issuer_url),
"token_endpoint": format!("{}/token", self.config.issuer_url),
- "jwks_uri": format!("{}/jwks", self.config.issuer_url),
"scopes_supported": ["openid", "profile", "email"],
"response_types_supported": ["code"],
- "response_modes_supported": ["query"],
- "grant_types_supported": ["authorization_code"],
- "subject_types_supported": ["public"],
- "id_token_signing_alg_values_supported": ["RS256"],
- "token_endpoint_auth_methods_supported": ["client_secret_basic", "client_secret_post"]
});
self.send_json_response(stream, 200, "OK", &metadata.to_string());
}