1 // Copyright (C) 2012 Intel Corporation. All rights reserved.
2 // Copyright 2014 Samsung Electronics. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
6 #include "ewk_auth_request.h"
7 #include "private/ewk_private.h"
8 #include "private/ewk_auth_challenge_private.h"
10 Eina_Bool ewk_auth_request_authenticate(Ewk_Auth_Request* request, const char* username, const char* password)
12 #if defined(OS_TIZEN_TV)
13 EINA_SAFETY_ON_NULL_RETURN_VAL(request, false);
14 EINA_SAFETY_ON_NULL_RETURN_VAL(username, false);
15 EINA_SAFETY_ON_NULL_RETURN_VAL(password, false);
16 request->is_decided = true;
17 request->login_delegate->Proceed(username, password);
20 LOG_EWK_API_MOCKUP("Only for Tizen TV Browser");
25 Eina_Bool ewk_auth_request_cancel(Ewk_Auth_Request* request)
27 #if defined(OS_TIZEN_TV)
28 EINA_SAFETY_ON_NULL_RETURN_VAL(request, false);
29 request->is_decided = true;
30 request->login_delegate->Cancel();
33 LOG_EWK_API_MOCKUP("Only for Tizen TV Browser");
38 const char* ewk_auth_request_realm_get(const Ewk_Auth_Request* request)
40 #if defined(OS_TIZEN_TV)
41 EINA_SAFETY_ON_NULL_RETURN_VAL(request, 0);
42 return request->realm.c_str();
44 LOG_EWK_API_MOCKUP("Only for Tizen TV Browser");