Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let user = "user"
- let password = "password"
- Alamofire.request(.GET, "https://httpbin.org/basic-auth/(user)/(password)")
- .authenticate(user: user, password: password)
- .responseJSON { response in
- debugPrint(response)
- // Aqui verifico se foi autenticado e redireciono para a view principal.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement