diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/signin.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/signin.rs b/src/components/signin.rs index 53c3670..f2b5313 100644 --- a/src/components/signin.rs +++ b/src/components/signin.rs @@ -185,6 +185,8 @@ fn callback_handler(sender: AsyncComponentSender<SignIn>) -> impl Fn(&soup::Serv } impl SignIn { + const WELL_KNOWN_METADATA_ENDPOINT_PATH: &str = "/.well-known/oauth-authorization-server"; + pub fn scopes() -> kittybox_indieauth::Scopes { kittybox_indieauth::Scopes::new(vec![ kittybox_indieauth::Scope::Profile, @@ -211,7 +213,7 @@ impl SignIn { async fn well_known_metadata(http: soup::Session, url: glib::Uri) -> Option<Metadata> { let well_known = url.parse_relative( - "/.well-known/oauth-authorization-server", + Self::WELL_KNOWN_METADATA_ENDPOINT_PATH, glib::UriFlags::NONE ).unwrap(); // Speculatively check for metadata at the well-known path |