Commit 6a851f39 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Merge branch 'develop' of github.com:RocketChat/Rocket.Chat.Android into new/search-messages

parents 2034a665 8c7899c3
...@@ -113,12 +113,18 @@ object OauthHelper { ...@@ -113,12 +113,18 @@ object OauthHelper {
state: String, state: String,
scope: String scope: String
): String { ): String {
return host + (authorizePath +
authorizePath +
"?client_id=$clientId" + "?client_id=$clientId" +
"&redirect_uri=${serverUrl.removeTrailingSlash()}/_oauth/$serviceName" + "&redirect_uri=${serverUrl.removeTrailingSlash()}/_oauth/$serviceName" +
"&state=$state" + "&state=$state" +
"&scope=$scope" + "&scope=$scope" +
"&response_type=code" "&response_type=code"
).let {
return if (it.contains(host)) {
it
} else {
host + it
}
}
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment