Skip to content

Commit

Permalink
Merge pull request #137 from blackgold9/sv/client_id
Browse files Browse the repository at this point in the history
Change client ID to official one
  • Loading branch information
robbiet480 committed Sep 5, 2018
2 parents ac2b8cc + fb6e61f commit 41afe43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AuthenticationController: NSObject, SFSafariViewControllerDelegate {
components?.path = "/auth/authorize"
let responseTypeQuery = URLQueryItem(name: "response_type", value: "code")
let clientIDQuery = URLQueryItem(name: "client_id",
value: "https://blackgold9.github.io/home-assistant-iOS")
value: "https://home-assistant.io/ios")
let redirectQuery = URLQueryItem(name: "redirect_uri", value: "homeassistant://auth-callback")
components?.queryItems = [responseTypeQuery, clientIDQuery, redirectQuery]
if let newURL = try components?.asURL() {
Expand Down
2 changes: 1 addition & 1 deletion Shared/Authentication/AuthenticationRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Alamofire
import Foundation

let kClientId = "https://blackgold9.github.io/home-assistant-iOS"
let kClientId = "https://home-assistant.io/ios"
struct RouteInfo: Alamofire.URLRequestConvertible {
let route: AuthenticationRoute
let baseURL: URL
Expand Down

0 comments on commit 41afe43

Please sign in to comment.