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

Realtime transport auth fixed (RTC1) #31

Merged
merged 4 commits into from
Oct 27, 2015
Merged

Realtime transport auth fixed (RTC1) #31

merged 4 commits into from
Oct 27, 2015

Conversation

ricardopereira
Copy link
Contributor

  • RTC1 is passing.

Next on new PR:

  • ARTError need to be a NSError.
  • Channels are not working.

return;
}

NSURLQueryItem *accessTokenParam = [NSURLQueryItem queryItemWithName:@"access_token" value:decodeBase64(tokenDetails.token)];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@paddybyers Correct? I'm decoding the access token (decodeBase64).

Copy link
Member

Choose a reason for hiding this comment

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

There shouldn't be any need to decode the token

@ricardopereira
Copy link
Contributor Author

Merge when it's possible. Thank you,

@paddybyers
Copy link
Member

Can you check that comment above about the token? You should treat the token string as opaque.

@ricardopereira
Copy link
Contributor Author

@paddybyers But the received token is encoded and then the it's not possible to establish connection to the realtime server.

@SimonWoolf
Copy link
Member

@ricardopereira realtime provides it as a base64-encoded string, and expects back the same base64-encoded string. If it's not working unless you have a decode in there, I'd hazard a guess that there's code elsewhere that's mistakenly encoding it before sending it.

(The client lib can't do anything with it decoded anyway -- it won't be valid ascii when decoded, just binary nonsense)

@ricardopereira
Copy link
Contributor Author

@SimonWoolf Ok, I will investigate. Thanks.

@ricardopereira
Copy link
Contributor Author

@paddybyers @SimonWoolf Fixed. Encoder was misplaced on ARTAuth.

paddybyers added a commit that referenced this pull request Oct 27, 2015
@paddybyers paddybyers merged commit f79c74b into ably:master Oct 27, 2015
@paddybyers
Copy link
Member

Thanks

@ricardopereira ricardopereira deleted the realtime-transport-auth-test branch October 27, 2015 22:01
maratal pushed a commit that referenced this pull request Jul 19, 2023
Addresses issue whereby a client authenticated with a wildcard clientId value (indicating any clientId can be assumed), is not reflected to anyone observing the client i.e. Auth#clientId is null, yet Auth#clientId is also null when a client is anonymous.

Addresses realtime issue #349 and wiki issue #31

See ably/ably-ruby#66 for this issue discovered in ably-ruby
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.

3 participants