Skip to content

Adds support for arbitrary auth scopes.#88

Open
keichan34 wants to merge 1 commit intojoeldev:masterfrom
keichan34:arbitrary-auth-scopes
Open

Adds support for arbitrary auth scopes.#88
keichan34 wants to merge 1 commit intojoeldev:masterfrom
keichan34:arbitrary-auth-scopes

Conversation

@keichan34
Copy link

This enables support for the "Extended Scopes" feature.
See more: https://developers.app.net/reference/authentication/#extended-scopes

I've added a compatibility layer for ANKAuthScope enum, but I'm not sure if that's the best way going forward. This PR uses string constants instead, so they can be passed into a NSArray with extended scopes:

@[ kANKAuthScopeBasic, @"messages:net.app.core.pm" ]

This conflicts pretty badly with my last PR #83, so whichever one is merged first I'll re-base and fix conflicts manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant