From 70ecc26ab8303b3eed7f8878ffbd9bbe5d9a5d53 Mon Sep 17 00:00:00 2001 From: Aaron Power Date: Fri, 29 Jun 2018 15:32:32 +0100 Subject: [PATCH] Changed Scope for examples and allowed input of custom domain. --- examples/register.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/register.rs b/examples/register.rs index 4c3d426..cfc8c5e 100644 --- a/examples/register.rs +++ b/examples/register.rs @@ -36,11 +36,12 @@ pub fn register() -> Result> { let app = AppBuilder { client_name: "mammut-examples", redirect_uris: "urn:ietf:wg:oauth:2.0:oob", - scopes: Scopes::Read, + scopes: Scopes::All, website: Some("https://github.com/Aaronepower/mammut"), }; - let mut registration = Registration::new("https://mastodon.social"); + let website = read_line("Please enter your mastodon instance url:")?; + let mut registration = Registration::new(website.trim()); registration.register(app)?; let url = registration.authorise()?;