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

RSA8f3 #350

Merged
merged 4 commits into from Apr 8, 2016
Merged

RSA8f3 #350

merged 4 commits into from Apr 8, 2016

Conversation

ricardopereira
Copy link
Contributor

No description provided.

let token = getTestToken()
let options = ARTClientOptions(token: token)
options.environment = "sandbox"
options.clientId = "john"
Copy link
Member

Choose a reason for hiding this comment

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

See PR for RSA8f4, this is wrong, you need a token with a wildcard clientId and clientId is not set in the options.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 5092393.

}
}
}
expect(rest.auth.clientId).to(beNil())
Copy link
Contributor

Choose a reason for hiding this comment

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

RSA8f3 says: "Check that Auth#clientId is a string with value '*'"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tcard Then this is wrong https://github.com/ably/ably-ios/blob/master/Source/ARTAuth.m#L346? I saw RSA12 and it should be nil. The nil value indicates that the client has not yet been able to confirm its identity. I think RSA8f3 spec is wrong. WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

The code is wrong, yes. I don't really think there's a conflict between RSA8f3 and RSA12. RSA12a has as precondition "The clientId attribute of a TokenRequest or TokenDetails used for authentication is null, or ConnectionDetails#clientId is null following a connection to Ably", which doesn't apply here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done cf241cd. (not passing)

@mattheworiordan
Copy link
Member

@ricardopereira this was merged without cf241cd? I think that was a mistake

@ricardopereira
Copy link
Contributor Author

You're right. Thanks.
#402 created.

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

Successfully merging this pull request may close these issues.

None yet

3 participants