Skip to content
This repository was archived by the owner on Jul 18, 2020. It is now read-only.

add delegateToken method #13

Merged
merged 1 commit into from
Mar 11, 2016
Merged

add delegateToken method #13

merged 1 commit into from
Mar 11, 2016

Conversation

chirag04
Copy link
Contributor

@chirag04 chirag04 commented Feb 3, 2016

@chirag04
Copy link
Contributor Author

chirag04 commented Feb 8, 2016

@hzalaz ping :)

@@ -159,17 +182,23 @@ - (void)authenticateWithConnectionName:(NSString *)connectionName options:(NSDic
[authenticator authenticateWithConnectionName:connectionName parameters:parameters success:success failure:failure];
}

- (NSDictionary *)scopeParamterFromOptions:(NSDictionary *)options {
NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
params[A0ParameterScope] = options[@"scope"];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we should create a dict if we are only interested in the scope? Let's return the scope directly

@hzalaz
Copy link
Member

hzalaz commented Feb 11, 2016

@chirag04 thanks for the PR, added some comments.

@chirag04
Copy link
Contributor Author

@hzalaz updated the PR based on your feedback.

@hzalaz
Copy link
Member

hzalaz commented Feb 12, 2016

@chirag04 one last comment and we are good to go

@chirag04
Copy link
Contributor Author

@hzalaz added those validations. should be good to go

@hzalaz hzalaz mentioned this pull request Mar 3, 2016
hzalaz added a commit that referenced this pull request Mar 11, 2016
@hzalaz hzalaz merged commit 940fb6a into auth0:master Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants