feat(scopes): Implement granular OAuth scopes

BREAKING CHANGE: Applications that use the `Scopes` data structure will
have minor changes to make

Closes #44
This commit is contained in:
Paul Woolcock
2018-08-30 19:12:16 -04:00
parent af806b7856
commit e284894d40
4 changed files with 647 additions and 75 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ pub fn register() -> Result<Mastodon, Box<Error>> {
let website = read_line("Please enter your mastodon instance url:")?;
let registration = Registration::new(website.trim())
.client_name("elefren-examples")
.scopes(Scopes::All)
.scopes(Scopes::all())
.website("https://github.com/pwoolcoc/elefren")
.build()?;
let url = registration.authorize_url()?;