Merged
Conversation
diegolmello
approved these changes
Jun 17, 2020
|
This looks great, thank you! |
Contributor
Author
|
Hey @pbenkoe, it'll work at mobile side without any extra step. 😁 |
diegolmello
added a commit
that referenced
this pull request
Jul 6, 2020
@RocketChat/ReactNative
Closes #688.
Test plan
Configuring iframe authentication at server level:
iframe-auth-examplehttps://github.com/RocketChat/iframe-auth-example
username: new-userpassword: new-users-passw0rdcurrentUsername(line 105) totrueso you can login again with the same user.Troubleshooting
If your Android emulator can't connect to
localhostas mine, you'll need to change the server configuration to your machine ip (http://10.0.2.2:3000) and change the code ofiframe-auth-exampleat the line 151 fromlocalhostto your machine ip.References:
https://docs.rocket.chat/guides/developer-guides/iframe-integration/authentication#iframe-url
https://github.com/RocketChat/Rocket.Chat/blob/develop/app/ui-utils/client/lib/IframeLogin.js
https://github.com/RocketChat/Rocket.Chat/blob/develop/app/iframe-login/client/iframe_client.js