Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for arbitrary auth scopes. #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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