+++ /dev/null
-#include "assert.h"
-#include <oauth2.h>
-#include <string.h>
-
-#define OAUTH2_FREE(ptr) \
- if (ptr != NULL) { \
- free(ptr); \
- ptr = NULL; \
- }
-
-static bool manager_created = false;
-static bool request_created = false;
-static oauth2_manager_h manager = NULL;
-static oauth2_request_h request = NULL;
-static int _is_fail = true;
-
-void utc_oauth2_startup(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- ret = oauth2_manager_create(&manager);
- if (ret == OAUTH2_ERROR_NONE)
- manager_created = true;
-
- ret = oauth2_request_create(&request);
- if (ret == OAUTH2_ERROR_NONE)
- request_created = true;
-}
-
-void utc_oauth2_cleanup(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- ret = oauth2_manager_destroy(manager);
- if (ret == OAUTH2_ERROR_NONE)
- manager_created = false;
-
- manager = NULL;
-
- ret = oauth2_request_destroy(request);
- if (ret == OAUTH2_ERROR_NONE)
- request_created = false;
-
- request = NULL;
-}
-
-int utc_oauth2_manager_create_p(void)
-{
- assert(manager_created);
-
- return 0;
-}
-
-int utc_oauth2_manager_create_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- ret = oauth2_manager_create(NULL);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_manager_destroy_p(void)
-{
- oauth2_manager_h manager_local = NULL;
-
- int ret = oauth2_manager_create(&manager_local);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- ret = oauth2_manager_destroy(manager_local);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_manager_destroy_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- ret = oauth2_manager_destroy(NULL);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_manager_request_token_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_manager_request_token(NULL, NULL, NULL, NULL);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_manager_request_authorization_grant_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_manager_request_authorization_grant(NULL, NULL, NULL, NULL);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_manager_request_access_token_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_manager_request_access_token(NULL, NULL, NULL, NULL);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_manager_refresh_access_token_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_manager_refresh_access_token(NULL, NULL, NULL, NULL);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_manager_is_request_in_progress_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_manager_is_request_in_progress(NULL);
- assert_eq(ret, false);
-
- return 0;
-}
-
-int oauth2_manager_clear_cookies_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_manager_clear_cookies(NULL);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_manager_clear_cache_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_manager_clear_cache(NULL);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-
-/*
- * request
- */
-
-int oauth2_request_create_p(void)
-{
- assert(request_created);
-
- return 0;
-}
-
-int oauth2_request_create_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- ret = oauth2_request_create(NULL);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_destroy_p(void)
-{
- assert(request_created);
- utc_oauth2_cleanup();
-
- assert(!request_created);
-
- utc_oauth2_startup();
-
- return 0;
-}
-
-int oauth2_request_destroy_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- ret = oauth2_request_destroy(NULL);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_auth_end_point_url_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_auth_end_point_url(request, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_auth_end_point_url_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_auth_end_point_url(NULL, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_token_end_point_url_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_token_end_point_url(request, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_token_end_point_url_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_token_end_point_url(NULL, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_redirection_url_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_redirection_url(request, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_redirection_url_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_redirection_url(NULL, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_refresh_token_url_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_refresh_token_url(request, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_refresh_token_url_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_refresh_token_url(NULL, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_refresh_token_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_refresh_token(request, "refresh_token");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_refresh_token_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_refresh_token(NULL, "refresh_token");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_response_type_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- oauth2_response_type_e type = OAUTH2_RESPONSE_TYPE_CODE;
-
- ret = oauth2_request_set_response_type(request, type);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_response_type_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_response_type(NULL, OAUTH2_RESPONSE_TYPE_CODE);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_client_id_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_client_id(request, "client_id");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_client_id_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_client_id(NULL, "client_id");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_client_authentication_type_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_client_authentication_type(request, OAUTH2_CLIENT_AUTHENTICATION_TYPE_REQUEST_BODY);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_client_authentication_type_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_client_authentication_type(NULL, OAUTH2_CLIENT_AUTHENTICATION_TYPE_REQUEST_BODY);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_scope_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_scope(request, "email");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_scope_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_scope(NULL, "email");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_state_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_state(request, "sample_state");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_state_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_state(NULL, "sample_state");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_grant_type_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- int type = OAUTH2_GRANT_TYPE_AUTH_CODE;
-
- ret = oauth2_request_set_grant_type(request, type);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_grant_type_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- int type = OAUTH2_GRANT_TYPE_AUTH_CODE;
-
- ret = oauth2_request_set_grant_type(NULL, type);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_authorization_code_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_authorization_code(request, "authorization_code");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_authorization_code_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_authorization_code(NULL, "authorization_code");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_user_name_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_user_name(request, "user_name");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_user_name_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_user_name(NULL, "user_name");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_set_password_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_password(request, "password");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_set_password_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_password(NULL, "password");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_add_custom_data_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_add_custom_data(request, "custom_key", "custom_value");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- return 0;
-}
-
-int oauth2_request_add_custom_data_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_add_custom_data(NULL, "custom_key", "custom_value");
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_auth_end_point_url_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_auth_end_point_url(request, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *url = NULL;
- ret = oauth2_request_get_auth_end_point_url(request, &url);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("www.example.com", url), 0);
-
- return 0;
-}
-
-int oauth2_request_get_auth_end_point_url_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *url = NULL;
-
- ret = oauth2_request_get_auth_end_point_url(NULL, &url);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_token_end_point_url_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_token_end_point_url(request, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *url = NULL;
- ret = oauth2_request_get_token_end_point_url(request, &url);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("www.example.com", url), 0);
-
- return 0;
-}
-
-int oauth2_request_get_token_end_point_url_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *url = NULL;
-
- ret = oauth2_request_get_token_end_point_url(NULL, &url);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_redirection_url_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_redirection_url(request, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *url = NULL;
- ret = oauth2_request_get_redirection_url(request, &url);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("www.example.com", url), 0);
-
- return 0;
-}
-
-int oauth2_request_get_redirection_url_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *url = NULL;
-
- ret = oauth2_request_get_redirection_url(NULL, &url);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_refresh_token_url_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_refresh_token_url(request, "www.example.com");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *url = NULL;
- ret = oauth2_request_get_refresh_token_url(request, &url);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("www.example.com", url), 0);
-
- return 0;
-}
-
-int oauth2_request_get_refresh_token_url_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *url = NULL;
-
- ret = oauth2_request_get_refresh_token_url(NULL, &url);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_refresh_token_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_refresh_token(request, "refresh_token");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *token = NULL;
- ret = oauth2_request_get_refresh_token(request, &token);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("refresh_token", token), 0);
-
- return 0;
-}
-
-int oauth2_request_get_refresh_token_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *token = NULL;
-
- ret = oauth2_request_get_refresh_token_url(NULL, &token);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_response_type_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- oauth2_response_type_e set_type = OAUTH2_RESPONSE_TYPE_CODE;
-
- ret = oauth2_request_set_response_type(request, set_type);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- oauth2_response_type_e type;
- ret = oauth2_request_get_response_type(request, &type);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(type, OAUTH2_RESPONSE_TYPE_CODE);
-
- return 0;
-}
-
-int oauth2_request_get_response_type_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- oauth2_response_type_e type;
-
- ret = oauth2_request_get_response_type(NULL, &type);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_client_id_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_client_id(request, "client_id");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *id = NULL;
- ret = oauth2_request_get_client_id(request, &id);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("client_id", id), 0);
-
- return 0;
-}
-
-int oauth2_request_get_client_id_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *id = NULL;
-
- ret = oauth2_request_get_client_id(NULL, &id);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_client_secret_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_client_secret(request, "client_secret");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *secret = NULL;
- ret = oauth2_request_get_client_secret(request, &secret);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("client_secret", secret), 0);
-
- return 0;
-}
-
-int oauth2_request_get_client_secret_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *secret = NULL;
-
- ret = oauth2_request_get_client_secret(NULL, &secret);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_scope_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_scope(request, "email");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *scope = NULL;
- ret = oauth2_request_get_scope(request, &scope);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("email", scope), 0);
-
- return 0;
-}
-
-int oauth2_request_get_scope_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *scope = NULL;
-
- ret = oauth2_request_get_scope(NULL, &scope);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_state_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_state(request, "sample_state");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *state = NULL;
- ret = oauth2_request_get_state(request, &state);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("sample_state", state), 0);
-
- return 0;
-}
-
-int oauth2_request_get_state_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *state = NULL;
-
- ret = oauth2_request_get_state(NULL, &state);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_grant_type_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- int set_type = OAUTH2_GRANT_TYPE_AUTH_CODE;
-
- ret = oauth2_request_set_grant_type(request, set_type);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- oauth2_grant_type_e type;
- ret = oauth2_request_get_grant_type(request, &type);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(type, OAUTH2_GRANT_TYPE_AUTH_CODE);
-
- return 0;
-}
-
-int oauth2_request_get_grant_type_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- oauth2_grant_type_e type;
-
- ret = oauth2_request_get_grant_type(NULL, &type);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_authorization_code_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_authorization_code(request, "auth_code");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *code = NULL;
- ret = oauth2_request_get_authorization_code(request, &code);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("auth_code", code), 0);
-
- return 0;
-}
-
-int oauth2_request_get_authorization_code_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *code = NULL;
-
- ret = oauth2_request_get_authorization_code(NULL, &code);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_user_name_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_user_name(request, "user_name");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *user_name = NULL;
- ret = oauth2_request_get_user_name(request, &user_name);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("user_name", user_name), 0);
-
- return 0;
-}
-
-int oauth2_request_get_user_name_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *user_name = NULL;
-
- ret = oauth2_request_get_user_name(NULL, &user_name);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_password_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_set_password(request, "password");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *password = NULL;
- ret = oauth2_request_get_password(request, &password);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("password", password), 0);
-
- return 0;
-}
-
-int oauth2_request_get_password_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
- char *password = NULL;
-
- ret = oauth2_request_get_password(NULL, &password);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_request_get_custom_data_p(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_request_add_custom_data(request, "c_key", "c_val");
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- char *val = NULL;
- ret = oauth2_request_get_custom_data(request, "c_key", &val);
- assert_eq(ret, OAUTH2_ERROR_NONE);
-
- assert_eq(strcmp("c_val", val), 0);
-
- return 0;
-}
-
-int oauth2_request_get_custom_data_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- char *val = NULL;
- ret = oauth2_request_get_custom_data(request, "key", &val);
- assert_eq(ret, OAUTH2_ERROR_VALUE_NOT_FOUND);
-
- return 0;
-}
-
-
-/*
- * response
- */
-
-int oauth2_response_destroy_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
-
- ret = oauth2_response_destroy(NULL);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_response_get_authorization_code_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- char *code = NULL;
-
- ret = oauth2_response_get_authorization_code(NULL, &code);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_response_get_state_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- char *state = NULL;
-
- ret = oauth2_response_get_state(NULL, &state);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_response_get_access_token_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- char *token = NULL;
-
- ret = oauth2_response_get_access_token(NULL, &token);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_response_get_token_type_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- char *type = NULL;
-
- ret = oauth2_response_get_token_type(NULL, &type);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_response_get_expires_in_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- long long expires_in = 0;
-
- ret = oauth2_response_get_expires_in(NULL, &expires_in);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_response_get_refresh_token_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- char *token = NULL;
-
- ret = oauth2_response_get_refresh_token(NULL, &token);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_response_get_scope_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- char *scope = NULL;
-
- ret = oauth2_response_get_scope(NULL, &scope);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_response_get_error_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- oauth2_error_h err = NULL;
-
- ret = oauth2_response_get_error(NULL, &err);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_response_get_custom_data_n(void)
-{
- assert(request);
-
- int ret = OAUTH2_ERROR_NONE;
-
- char *val = NULL;
- ret = oauth2_response_get_custom_data(NULL, "key", &val);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-
-/*
- * error
- */
-
-int oauth2_error_get_code_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
-
- int val1 = 0;
- int val2 = 0;
-
- ret = oauth2_error_get_code(NULL, &val1, &val2);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_error_get_description_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- char *description = NULL;
-
- ret = oauth2_error_get_description(NULL, &description);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_error_get_uri_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
- char *uri = NULL;
-
- ret = oauth2_error_get_uri(NULL, &uri);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-int oauth2_error_get_custom_data_n(void)
-{
- int ret = OAUTH2_ERROR_NONE;
-
- char *val = NULL;
- ret = oauth2_error_get_custom_data(NULL, "key", &val);
- assert_eq(ret, OAUTH2_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
- <storageModule moduleId="org.eclipse.cdt.core.settings">
- <cconfiguration id="org.tizen.nativecore.config.sbi.gcc45.app.debug.35369740">
- <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.tizen.nativecore.config.sbi.gcc45.app.debug.35369740" moduleId="org.eclipse.cdt.core.settings" name="Debug">
- <externalSettings/>
- <extensions>
- <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
- <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- </extensions>
- </storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <configuration artifactName="oauth2sample" buildArtefactType="org.tizen.nativecore.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.tizen.nativecore.buildArtefactType.app" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;" id="org.tizen.nativecore.config.sbi.gcc45.app.debug.35369740" name="Debug" parent="org.tizen.nativecore.config.sbi.gcc45.app.debug">
- <folderInfo id="org.tizen.nativecore.config.sbi.gcc45.app.debug.35369740." name="/" resourcePath="">
- <toolChain id="org.tizen.nativecore.toolchain.sbi.gcc45.app.debug.1932355913" name="Tizen Native Toolchain" superClass="org.tizen.nativecore.toolchain.sbi.gcc45.app.debug">
- <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="org.tizen.nativeide.target.sbi.gnu.platform.base.835513167" osList="linux,win32" superClass="org.tizen.nativeide.target.sbi.gnu.platform.base"/>
- <builder autoBuildTarget="all" buildPath="${workspace_loc:/oauth2sample}/Debug" enableAutoBuild="true" id="org.tizen.nativecore.target.sbi.gnu.builder.1851904286" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Tizen Application Builder" superClass="org.tizen.nativecore.target.sbi.gnu.builder"/>
- <tool id="org.tizen.nativecore.tool.sbi.gnu.archiver.575288976" name="Archiver" superClass="org.tizen.nativecore.tool.sbi.gnu.archiver"/>
- <tool command="clang++" id="org.tizen.nativecore.tool.sbi.gnu.cpp.compiler.9435045" name="C++ Compiler" superClass="org.tizen.nativecore.tool.sbi.gnu.cpp.compiler">
- <option id="gnu.cpp.compiler.option.optimization.level.1776181162" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
- <option id="sbi.gnu.cpp.compiler.option.debugging.level.core.1985717727" name="Debug level" superClass="sbi.gnu.cpp.compiler.option.debugging.level.core" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/>
- <option id="sbi.gnu.cpp.compiler.option.1692837965" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
- <listOptionValue builtIn="false" value="mobile-2.3-emulator.core_llvm34.i386.core.app"/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.core.1937135781" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.core" valueType="includePath">
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libxml2""/>
- <listOptionValue builtIn="false" value=""${SDK_INSTALL_PATH}/library""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/AL""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appcore-agent""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appfw""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/base""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cairo""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/calendar-service2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ckm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/contacts-svc""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/curl""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dbus-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/dbus-1.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dlog""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/e_dbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/edje-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efreet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1/eina""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/elementary-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/fontconfig""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/freetype2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/gio-unix-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/glib-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/glib-2.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0/json-glib""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libexif""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media-content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minizip""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/network""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/notification""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/shortcut""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/storage""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/system""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/vconf""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/web""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/EGL""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/badge""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eio-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/email-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/embryo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/KHR""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/messaging""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/msg-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ug-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/context-manager""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony-client""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ewebkit2-0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/location""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/sensor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-extension""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/wifi-direct""/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks_cflags.core.1834402093" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.cpp.compiler.option.frameworks_cflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="-target i386-tizen-linux-gnueabi -gcc-toolchain ${SDK_INSTALL_PATH}/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.6/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Wno-gnu"/>
- <listOptionValue builtIn="false" value=""/>
- <listOptionValue builtIn="false" value=" -fPIE"/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- </option>
- <option id="gnu.cpp.compiler.option.include.paths.1952117363" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/inc}""/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks.core.1109970886" name="Tizen-Frameworks" superClass="sbi.gnu.cpp.compiler.option.frameworks.core" valueType="userObjs">
- <listOptionValue builtIn="false" value="Native_API"/>
- </option>
- <option id="gnu.cpp.compiler.option.preprocessor.def.953940524" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" valueType="definedSymbols">
- <listOptionValue builtIn="false" value="_DEBUG"/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1543660824" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
- </tool>
- <tool command="clang" id="org.tizen.nativecore.tool.sbi.gnu.c.compiler.904099477" name="C Compiler" superClass="org.tizen.nativecore.tool.sbi.gnu.c.compiler">
- <option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.option.optimization.level.795818165" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" valueType="enumerated"/>
- <option id="sbi.gnu.c.compiler.option.debugging.level.core.1410585161" name="Debug level" superClass="sbi.gnu.c.compiler.option.debugging.level.core" value="gnu.c.debugging.level.max" valueType="enumerated"/>
- <option id="sbi.gnu.c.compiler.option.1871058614" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
- <listOptionValue builtIn="false" value="mobile-2.3-emulator.core_llvm34.i386.core.app"/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks_inc.core.1614144866" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.core" valueType="includePath">
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libxml2""/>
- <listOptionValue builtIn="false" value=""${SDK_INSTALL_PATH}/library""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/AL""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appcore-agent""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appfw""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/base""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cairo""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/calendar-service2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ckm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/contacts-svc""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/curl""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dbus-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/dbus-1.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dlog""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/e_dbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/edje-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efreet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1/eina""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/elementary-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/fontconfig""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/freetype2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/gio-unix-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/glib-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/glib-2.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0/json-glib""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libexif""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media-content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minizip""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/network""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/notification""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/shortcut""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/storage""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/system""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/vconf""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/web""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/EGL""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/badge""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eio-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/email-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/embryo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/KHR""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/messaging""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/msg-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ug-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/context-manager""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony-client""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ewebkit2-0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/location""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/sensor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-extension""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/wifi-direct""/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks_cflags.core.1643382731" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.c.compiler.option.frameworks_cflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="-target i386-tizen-linux-gnueabi -gcc-toolchain ${SDK_INSTALL_PATH}/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.6/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Wno-gnu"/>
- <listOptionValue builtIn="false" value=""/>
- <listOptionValue builtIn="false" value=" -fPIE"/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- </option>
- <option id="gnu.c.compiler.option.include.paths.1436936472" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/inc}""/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks.core.263090082" name="Tizen-Frameworks" superClass="sbi.gnu.c.compiler.option.frameworks.core" valueType="userObjs">
- <listOptionValue builtIn="false" value="Native_API"/>
- </option>
- <option id="gnu.c.compiler.option.preprocessor.def.symbols.214989945" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" valueType="definedSymbols">
- <listOptionValue builtIn="false" value="_DEBUG"/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1902977079" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
- </tool>
- <tool id="org.tizen.nativeide.tool.sbi.gnu.c.linker.base.1960174872" name="C Linker" superClass="org.tizen.nativeide.tool.sbi.gnu.c.linker.base"/>
- <tool command="clang++" id="org.tizen.nativecore.tool.sbi.gnu.cpp.linker.533543766" name="C++ Linker" superClass="org.tizen.nativecore.tool.sbi.gnu.cpp.linker">
- <option id="sbi.gnu.cpp.linker.option.frameworks_lflags.core.1501738361" name="Tizen-Frameworks-Other-Lflags" superClass="sbi.gnu.cpp.linker.option.frameworks_lflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="-target i386-tizen-linux-gnueabi -gcc-toolchain ${SDK_INSTALL_PATH}/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.6/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Xlinker --as-needed"/>
- <listOptionValue builtIn="false" value=""/>
- <listOptionValue builtIn="false" value="-pie -lpthread "/>
- <listOptionValue builtIn="false" value="-Xlinker -rpath="/home/developer/sdk_tools/lib""/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- <listOptionValue builtIn="false" value="-Xlinker --version-script=${ProjDirPath}/.exportMap"/>
- <listOptionValue builtIn="false" value="-L"${SBI_SYSROOT}/usr/lib""/>
- <listOptionValue builtIn="false" value="$(RS_LIBRARIES)"/>
- </option>
- <option id="gnu.cpp.link.option.paths.1236417961" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/lib}""/>
- </option>
- <option id="gnu.cpp.link.option.other.1835288814" name="Other options (-Xlinker [option])" superClass="gnu.cpp.link.option.other" valueType="stringList">
- <listOptionValue builtIn="false" value="--allow-shlib-undefined"/>
- </option>
- <option id="gnu.cpp.link.option.libs.936918886" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs">
- <listOptionValue builtIn="false" value="oauth2"/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1642430402" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
- <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
- <additionalInput kind="additionalinput" paths="$(LIBS)"/>
- </inputType>
- </tool>
- <tool command="i386-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1959170503" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
- <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1335682506" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
- </tool>
- <tool id="org.tizen.nativecore.tool.fnmapgen.1095525890" name="C FN-Map Generator" superClass="org.tizen.nativecore.tool.fnmapgen"/>
- <tool id="org.tizen.nativecore.tool.fnmapgen.cpp.174306969" name="C++ FN-Map Generator" superClass="org.tizen.nativecore.tool.fnmapgen.cpp"/>
- <tool id="org.tizen.nativecore.tool.ast.589085832" name="C Static Analyzer" superClass="org.tizen.nativecore.tool.ast"/>
- <tool id="org.tizen.nativecore.tool.ast.cpp.1715860965" name="C++ Static Analyzer" superClass="org.tizen.nativecore.tool.ast.cpp"/>
- <tool id="org.tizen.nativecore.tool.sbi.po.compiler.940802063" name="PO Resource Compiler" superClass="org.tizen.nativecore.tool.sbi.po.compiler"/>
- <tool id="org.tizen.nativecore.tool.sbi.edc.compiler.1238882478" name="EDC Resource Compiler" superClass="org.tizen.nativecore.tool.sbi.edc.compiler"/>
- </toolChain>
- </folderInfo>
- <sourceEntries>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="inc"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="res"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
- </sourceEntries>
- </configuration>
- </storageModule>
- <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
- </cconfiguration>
- <cconfiguration id="org.tizen.nativecore.config.sbi.gcc45.app.release.1192989987">
- <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.tizen.nativecore.config.sbi.gcc45.app.release.1192989987" moduleId="org.eclipse.cdt.core.settings" name="Release">
- <externalSettings/>
- <extensions>
- <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
- <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- </extensions>
- </storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <configuration artifactName="oauth2sample" buildArtefactType="org.tizen.nativecore.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release,org.eclipse.cdt.build.core.buildArtefactType=org.tizen.nativecore.buildArtefactType.app" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;" id="org.tizen.nativecore.config.sbi.gcc45.app.release.1192989987" name="Release" parent="org.tizen.nativecore.config.sbi.gcc45.app.release">
- <folderInfo id="org.tizen.nativecore.config.sbi.gcc45.app.release.1192989987." name="/" resourcePath="">
- <toolChain id="org.tizen.nativecore.toolchain.sbi.gcc45.app.release.1470295182" name="Tizen Native Toolchain" superClass="org.tizen.nativecore.toolchain.sbi.gcc45.app.release">
- <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="org.tizen.nativeide.target.sbi.gnu.platform.base.2100613488" osList="linux,win32" superClass="org.tizen.nativeide.target.sbi.gnu.platform.base"/>
- <builder buildPath="${workspace_loc:/oauth2sample}/Release" id="org.tizen.nativecore.target.sbi.gnu.builder.1296202048" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Tizen Application Builder" superClass="org.tizen.nativecore.target.sbi.gnu.builder"/>
- <tool id="org.tizen.nativecore.tool.sbi.gnu.archiver.1343234711" name="Archiver" superClass="org.tizen.nativecore.tool.sbi.gnu.archiver"/>
- <tool command="clang++" id="org.tizen.nativecore.tool.sbi.gnu.cpp.compiler.548120564" name="C++ Compiler" superClass="org.tizen.nativecore.tool.sbi.gnu.cpp.compiler">
- <option id="gnu.cpp.compiler.option.optimization.level.1270322472" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/>
- <option id="sbi.gnu.cpp.compiler.option.debugging.level.core.454664461" name="Debug level" superClass="sbi.gnu.cpp.compiler.option.debugging.level.core"/>
- <option id="sbi.gnu.cpp.compiler.option.51598881" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
- <listOptionValue builtIn="false" value="mobile-2.3-emulator.core_llvm34.i386.core.app"/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.core.1782959222" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.core" valueType="includePath">
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libxml2""/>
- <listOptionValue builtIn="false" value=""${SDK_INSTALL_PATH}/library""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/AL""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appcore-agent""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appfw""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/base""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cairo""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/calendar-service2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ckm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/contacts-svc""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/curl""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dbus-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/dbus-1.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dlog""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/e_dbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/edje-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efreet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1/eina""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/elementary-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/fontconfig""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/freetype2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/gio-unix-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/glib-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/glib-2.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0/json-glib""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libexif""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media-content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minizip""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/network""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/notification""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/shortcut""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/storage""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/system""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/vconf""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/web""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/EGL""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/badge""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eio-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/email-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/embryo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/KHR""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/messaging""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/msg-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ug-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/context-manager""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony-client""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ewebkit2-0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/location""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/sensor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-extension""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/wifi-direct""/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks_cflags.core.583078440" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.cpp.compiler.option.frameworks_cflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="-target i386-tizen-linux-gnueabi -gcc-toolchain ${SDK_INSTALL_PATH}/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.6/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Wno-gnu"/>
- <listOptionValue builtIn="false" value=""/>
- <listOptionValue builtIn="false" value=" -fPIE"/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- </option>
- <option id="gnu.cpp.compiler.option.include.paths.803635474" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/inc}""/>
- </option>
- <option id="sbi.gnu.cpp.compiler.option.frameworks.core.1928146467" name="Tizen-Frameworks" superClass="sbi.gnu.cpp.compiler.option.frameworks.core" valueType="userObjs">
- <listOptionValue builtIn="false" value="Native_API"/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1606021895" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
- </tool>
- <tool command="clang" id="org.tizen.nativecore.tool.sbi.gnu.c.compiler.458638980" name="C Compiler" superClass="org.tizen.nativecore.tool.sbi.gnu.c.compiler">
- <option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.option.optimization.level.1662837949" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" valueType="enumerated"/>
- <option id="sbi.gnu.c.compiler.option.debugging.level.core.2954587" name="Debug level" superClass="sbi.gnu.c.compiler.option.debugging.level.core"/>
- <option id="sbi.gnu.c.compiler.option.516155576" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
- <listOptionValue builtIn="false" value="mobile-2.3-emulator.core_llvm34.i386.core.app"/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks_inc.core.2009862205" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.core" valueType="includePath">
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libxml2""/>
- <listOptionValue builtIn="false" value=""${SDK_INSTALL_PATH}/library""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/AL""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appcore-agent""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/appfw""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/base""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/cairo""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/calendar-service2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ckm""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/contacts-svc""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/curl""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dbus-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/dbus-1.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/dlog""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ecore-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/e_dbus-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/edje-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efreet-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1/eina""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eina-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/elementary-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ethumb-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/evas-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/fontconfig""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/freetype2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/gio-unix-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/glib-2.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/glib-2.0/include""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/json-glib-1.0/json-glib""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/libexif""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media-content""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/media""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/minizip""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/network""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/notification""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/shortcut""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/storage""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/system""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ui""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/vconf""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/web""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/EGL""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/badge""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/eio-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/email-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/embryo-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/GLES2""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/KHR""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/messaging""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/msg-service""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ug-1""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/context-manager""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/telephony-client""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/ewebkit2-0""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/location""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/sensor""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/efl-extension""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/wifi-direct""/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks_cflags.core.536515996" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.c.compiler.option.frameworks_cflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="-target i386-tizen-linux-gnueabi -gcc-toolchain ${SDK_INSTALL_PATH}/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.6/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Wno-gnu"/>
- <listOptionValue builtIn="false" value=""/>
- <listOptionValue builtIn="false" value=" -fPIE"/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- </option>
- <option id="gnu.c.compiler.option.include.paths.877534920" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/inc}""/>
- </option>
- <option id="sbi.gnu.c.compiler.option.frameworks.core.966575198" name="Tizen-Frameworks" superClass="sbi.gnu.c.compiler.option.frameworks.core" valueType="userObjs">
- <listOptionValue builtIn="false" value="Native_API"/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.2026715398" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
- </tool>
- <tool id="org.tizen.nativeide.tool.sbi.gnu.c.linker.base.372779631" name="C Linker" superClass="org.tizen.nativeide.tool.sbi.gnu.c.linker.base"/>
- <tool command="clang++" id="org.tizen.nativecore.tool.sbi.gnu.cpp.linker.672988585" name="C++ Linker" superClass="org.tizen.nativecore.tool.sbi.gnu.cpp.linker">
- <option id="sbi.gnu.cpp.linker.option.frameworks_lflags.core.850721168" name="Tizen-Frameworks-Other-Lflags" superClass="sbi.gnu.cpp.linker.option.frameworks_lflags.core" valueType="stringList">
- <listOptionValue builtIn="false" value="-target i386-tizen-linux-gnueabi -gcc-toolchain ${SDK_INSTALL_PATH}/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.6/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Xlinker --as-needed"/>
- <listOptionValue builtIn="false" value=""/>
- <listOptionValue builtIn="false" value="-pie -lpthread "/>
- <listOptionValue builtIn="false" value="-Xlinker -rpath="/home/developer/sdk_tools/lib""/>
- <listOptionValue builtIn="false" value="--sysroot="${SBI_SYSROOT}""/>
- <listOptionValue builtIn="false" value="-Xlinker --version-script=${ProjDirPath}/.exportMap"/>
- <listOptionValue builtIn="false" value="-L"${SBI_SYSROOT}/usr/lib""/>
- <listOptionValue builtIn="false" value="$(RS_LIBRARIES)"/>
- </option>
- <option id="gnu.cpp.link.option.paths.366788594" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
- <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/lib}""/>
- </option>
- <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.2037934386" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
- <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
- <additionalInput kind="additionalinput" paths="$(LIBS)"/>
- </inputType>
- </tool>
- <tool command="i386-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1857148066" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
- <inputType id="cdt.managedbuild.tool.gnu.assembler.input.872470581" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
- </tool>
- <tool id="org.tizen.nativecore.tool.fnmapgen.760472978" name="C FN-Map Generator" superClass="org.tizen.nativecore.tool.fnmapgen"/>
- <tool id="org.tizen.nativecore.tool.fnmapgen.cpp.164635198" name="C++ FN-Map Generator" superClass="org.tizen.nativecore.tool.fnmapgen.cpp"/>
- <tool id="org.tizen.nativecore.tool.ast.660536664" name="C Static Analyzer" superClass="org.tizen.nativecore.tool.ast"/>
- <tool id="org.tizen.nativecore.tool.ast.cpp.185952367" name="C++ Static Analyzer" superClass="org.tizen.nativecore.tool.ast.cpp"/>
- <tool id="org.tizen.nativecore.tool.sbi.po.compiler.512099724" name="PO Resource Compiler" superClass="org.tizen.nativecore.tool.sbi.po.compiler"/>
- <tool id="org.tizen.nativecore.tool.sbi.edc.compiler.765170517" name="EDC Resource Compiler" superClass="org.tizen.nativecore.tool.sbi.edc.compiler"/>
- </toolChain>
- </folderInfo>
- <sourceEntries>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="inc"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="res"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
- </sourceEntries>
- </configuration>
- </storageModule>
- <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
- </cconfiguration>
- </storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <project id="oauth2sample.org.tizen.nativecore.target.sbi.gcc45.app.271959664" name="Tizen Native Application" projectType="org.tizen.nativecore.target.sbi.gcc45.app"/>
- </storageModule>
- <storageModule moduleId="scannerConfiguration">
- <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
- <scannerConfigBuildInfo instanceId="org.tizen.nativecore.config.sbi.gcc45.app.debug.35369740">
- <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
- </scannerConfigBuildInfo>
- <scannerConfigBuildInfo instanceId="org.tizen.nativecore.config.sbi.gcc45.app.release.1192989987">
- <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
- </scannerConfigBuildInfo>
- </storageModule>
- <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
- <storageModule moduleId="com.samsung.tizen.nativeapp.projectInfo" version="1.0.0"/>
- <storageModule moduleId="refreshScope"/>
-</cproject>
+++ /dev/null
-{
- global: main;
- local: *;
-};
+++ /dev/null
-/Debug
-/SA_Report
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>oauth2sample</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
- <triggers>full,incremental,</triggers>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.tizen.nativecore.apichecker.core.builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.cdt.core.cnature</nature>
- <nature>org.eclipse.cdt.core.ccnature</nature>
- <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
- <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
- <nature>org.tizen.nativecore.apichecker.core.tizenCppNature</nature>
- </natures>
- <filteredResources>
- <filter>
- <id>1419424840036</id>
- <name></name>
- <type>26</type>
- <matcher>
- <id>org.eclipse.ui.ide.multiFilter</id>
- <arguments>1.0-projectRelativePath-matches-false-false-*/.tpk</arguments>
- </matcher>
- </filter>
- </filteredResources>
-</projectDescription>
+++ /dev/null
-#delete
-#add
-#modify
-author-signature.xml
-signature1.xml
-bin/oauth2sample
+++ /dev/null
-res/images/grid_image/1_raw.png__DEL__IJNLOq/2eGlWpHGmr+9Mr8bWDbnm0RohlK0cMHO8jZU=
-res/images/iu.png__DEL__iLwO5Bzet3XJ6+hLP5KGoIsFcgDFFICC19Pk+JGz4is=
-res/ui_controls.edj__DEL__P5tTRH+wMgYOHC4QcTJeBfVUjJNtIkZRJL9uAJsDt5o=
-tizen-manifest.xml__DEL__REZ9bAErUlTAZTGWvFzxO+T0YAz2d/T684MIZ/1Ck04=
-author-signature.xml__DEL__ybL4oH6K7BJTbQoOvIrx95Gw08Y4oRY5rnLe5SDS0Pg=
-bin/oauth2sample__DEL__xp2KvMkshUwa7Z6YfIHytYMTIoouW3csKkKojalMoKM=
+++ /dev/null
-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="AuthorSignature">
-<SignedInfo>
-<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
-<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>
-<Reference URI="bin%2Foauth2sample">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>xp2KvMkshUwa7Z6YfIHytYMTIoouW3csKkKojalMoKM=</DigestValue>
-</Reference>
-<Reference URI="res%2Fimages%2Fgrid_image%2F1_raw.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>IJNLOq/2eGlWpHGmr+9Mr8bWDbnm0RohlK0cMHO8jZU=</DigestValue>
-</Reference>
-<Reference URI="res%2Fimages%2Fiu.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>iLwO5Bzet3XJ6+hLP5KGoIsFcgDFFICC19Pk+JGz4is=</DigestValue>
-</Reference>
-<Reference URI="res%2Fui_controls.edj">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>P5tTRH+wMgYOHC4QcTJeBfVUjJNtIkZRJL9uAJsDt5o=</DigestValue>
-</Reference>
-<Reference URI="tizen-manifest.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>REZ9bAErUlTAZTGWvFzxO+T0YAz2d/T684MIZ/1Ck04=</DigestValue>
-</Reference>
-<Reference URI="#prop">
-<Transforms>
-<Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"></Transform>
-</Transforms>
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>lpo8tUDs054eLlBQXiDPVDVKfw30ZZdtkRs1jd7H5K8=</DigestValue>
-</Reference>
-</SignedInfo>
-<SignatureValue>
-dbKvWD7AESvXzx7kK3JI6yDhpf/61w/toG9DCqXWHdZImK2wRp81tlDrlprVGe73hs7gSwS+el00
-7my2EgZs6NNE7+B6U5MnE5siOsUyy+m2/ii5hIPbNhDyj4Y+cFERqg+xPsm1NEopGDKFeHUK8WKq
-3w7H25JBNCeo4o+AOFo=
-</SignatureValue>
-<KeyInfo>
-<X509Data>
-<X509Certificate>
-MIIClTCCAX2gAwIBAgIGAUrO5j0CMA0GCSqGSIb3DQEBBQUAMFYxGjAYBgNVBAoMEVRpemVuIEFz
-c29jaWF0aW9uMRowGAYDVQQLDBFUaXplbiBBc3NvY2lhdGlvbjEcMBoGA1UEAwwTVGl6ZW4gRGV2
-ZWxvcGVycyBDQTAeFw0xMjExMDEwMDAwMDBaFw0xOTAxMDEwMDAwMDBaMBExDzANBgNVBAMMBmF1
-dGhvcjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA2G3EqJEfw34IO14zXvcnlAqvWeh/2vZT
-anRYQCrAdhZuTPF/S+Nqn2j+MLFTxvKfifv4obHV1ZUHKDfb3I0ttx84PZBMARxUyWkuZDt/166W
-h/JUFHFYkuqOc6/dlrj5RcB2WpdqqExdLSqNvf9ROxyoFX+RjBmvhZtKli4dp7MCAwEAAaMyMDAw
-DAYDVR0TAQH/BAIwADALBgNVHQ8EBAMCB4AwEwYDVR0lBAwwCgYIKwYBBQUHAwMwDQYJKoZIhvcN
-AQEFBQADggEBAAQnep8Zk5FnQQEedDrsaqFvUgqOg22RToG/4wFJophVKDYiT2sA3kTfq2yR5nWB
-EgspvIkM6y9q+eNmMxGvP7JL4nbPqFdN66UXxfd09AtFj4oWiYU2sy8Hv4DbHYa2EsHXlfyICWZw
-M6OHDIVYVZiVAmkYDPnCWlZ/fpbHHPjhi7LeFgKKFA36DGnMxeB5O3B4WKzPBg+EDizQD7IKXvQj
-gIlhQ468Jy5HCgNfz8OERTeYU1YjrBgcwz69gClCbdd38mYIFf6EN7yCwAGwabsGa5olU6lCY8HT
-D2w0LCkiUJe0lOKN0xyPTxvcm3HNitF+v8ibRNIfQrQaETEClSk=
-</X509Certificate>
-<X509Certificate>
-MIIDOTCCAiGgAwIBAgIBATANBgkqhkiG9w0BAQUFADBYMRowGAYDVQQKDBFUaXplbiBBc3NvY2lh
-dGlvbjEaMBgGA1UECwwRVGl6ZW4gQXNzb2NpYXRpb24xHjAcBgNVBAMMFVRpemVuIERldmVsb3Bl
-cnMgUm9vdDAeFw0xMjAxMDEwMDAwMDBaFw0yNzAxMDEwMDAwMDBaMFYxGjAYBgNVBAoMEVRpemVu
-IEFzc29jaWF0aW9uMRowGAYDVQQLDBFUaXplbiBBc3NvY2lhdGlvbjEcMBoGA1UEAwwTVGl6ZW4g
-RGV2ZWxvcGVycyBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANVGhRGmMIUyBA7o
-PCz8Sxut6z6HNkF4oDIuzuKaMzRYPeWodwe9O0gmqAkToQHfwg2giRhE5GoPld0fq+OYMMwSasCu
-g8dwODx1eDeSYVuOLWRxpAmbTXOsSFi6VoWeyaPEm18JBHvZBsU5YQtgZ6Kp7MqzvQg3pXOxtajj
-vyHxiatJl+xXrHgcXC1wgyG3buty7u/Fi2mvKXJ0PRJcCjjK81dqe/Vr20sRUCrbk02zbm5ggFt/
-jIEhV8wbFRQpliobc7J4dSTKhFfrqGM8rdd54LYhD7gSI1CFSe16pUXfcVR7FhJztRaiGLnCrwBE
-dyTZ248+D4L/qR/D0axb3jcCAwEAAaMQMA4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOC
-AQEAnOXXQ/1O/QTDHyrmQDtFziqPY3xWlJBqJtEqXiT7Y+Ljpe66e+Ee/OjQMlZe8gu21/8cKklH
-95RxjopMWCVedXDUbWdvS2+CdyvVW/quT2E0tjqIzXDekUTYwwhlPWlGxvfj3VsxqSFq3p8Brl04
-1Gx5RKAGyKVsMfTLhbbwSWwApuBUxYfcNpKwLWGPXkysu+HctY03OKv4/xKBnVWiN8ex/Sgesi0M
-+OBAOMdZMPK32uJBTeKFx1xZgTLIhk45V0hPOomPjZloiv0LSS11eyd451ufjW0iHRE7WlpR6EvI
-W6TFyZgMpQq+kg4hWl2SBTf3s2VI8Ygz7gj8TMlClg==
-</X509Certificate>
-</X509Data>
-</KeyInfo>
-<Object Id="prop"><SignatureProperties xmlns:dsp="http://www.w3.org/2009/xmldsig-properties"><SignatureProperty Id="profile" Target="#AuthorSignature"><dsp:Profile URI="http://www.w3.org/ns/widgets-digsig#profile"></dsp:Profile></SignatureProperty><SignatureProperty Id="role" Target="#AuthorSignature"><dsp:Role URI="http://www.w3.org/ns/widgets-digsig#role-author"></dsp:Role></SignatureProperty><SignatureProperty Id="identifier" Target="#AuthorSignature"><dsp:Identifier></dsp:Identifier></SignatureProperty></SignatureProperties></Object>
-</Signature>
\ No newline at end of file
+++ /dev/null
-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="DistributorSignature">
-<SignedInfo>
-<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
-<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>
-<Reference URI="author-signature.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>ybL4oH6K7BJTbQoOvIrx95Gw08Y4oRY5rnLe5SDS0Pg=</DigestValue>
-</Reference>
-<Reference URI="bin%2Foauth2sample">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>xp2KvMkshUwa7Z6YfIHytYMTIoouW3csKkKojalMoKM=</DigestValue>
-</Reference>
-<Reference URI="res%2Fimages%2Fgrid_image%2F1_raw.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>IJNLOq/2eGlWpHGmr+9Mr8bWDbnm0RohlK0cMHO8jZU=</DigestValue>
-</Reference>
-<Reference URI="res%2Fimages%2Fiu.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>iLwO5Bzet3XJ6+hLP5KGoIsFcgDFFICC19Pk+JGz4is=</DigestValue>
-</Reference>
-<Reference URI="res%2Fui_controls.edj">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>P5tTRH+wMgYOHC4QcTJeBfVUjJNtIkZRJL9uAJsDt5o=</DigestValue>
-</Reference>
-<Reference URI="tizen-manifest.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>REZ9bAErUlTAZTGWvFzxO+T0YAz2d/T684MIZ/1Ck04=</DigestValue>
-</Reference>
-<Reference URI="#prop">
-<Transforms>
-<Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"></Transform>
-</Transforms>
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>u/jU3U4Zm5ihTMSjKGlGYbWzDfRkGphPPHx3gJIYEJ4=</DigestValue>
-</Reference>
-</SignedInfo>
-<SignatureValue>
-ZKdD+UmX507rvD/ESshJj/4ULhik0d9822DPXsubv15lUmZsq9NgHz2pctbxs9qP2DJlfUB2GyoX
-zmSDnD3rO9Woui/nZUop8vhtgqcTfrVkmSPeJxWIWRWyj4opTiJmJoyTP5x3/aDgqdPag5pPrv94
-aUDFngoHB/JxAOxxkCA=
-</SignatureValue>
-<KeyInfo>
-<X509Data>
-<X509Certificate>
-MIICmzCCAgQCCQDXI7WLdVZwiTANBgkqhkiG9w0BAQUFADCBjzELMAkGA1UEBhMCS1IxDjAMBgNV
-BAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6ZW4gVGVzdCBDQTEiMCAGA1UE
-CwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEkMCIGA1UEAwwbVGl6ZW4gUHVibGljIERpc3Ry
-aWJ1dG9yIENBMB4XDTEyMTAyOTEzMDMwNFoXDTIyMTAyNzEzMDMwNFowgZMxCzAJBgNVBAYTAktS
-MQ4wDAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24xFjAUBgNVBAoMDVRpemVuIFRlc3QgQ0Ex
-IjAgBgNVBAsMGVRpemVuIERpc3RyaWJ1dG9yIFRlc3QgQ0ExKDAmBgNVBAMMH1RpemVuIFB1Ymxp
-YyBEaXN0cmlidXRvciBTaWduZXIwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALtMvlc5hENK
-90ZdA+y66+Sy0enD1gpZDBh5T9RP0oRsptJv5jjNTseQbQi0SZOdOXb6J7iQdlBCtR343RpIEz8H
-mrBy7mSY7mgwoU4EPpp4CTSUeAuKcmvrNOngTp5Hv7Ngf02TTHOLK3hZLpGayaDviyNZB5PdqQdB
-hokKjzAzAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAvGp1gxxAIlFfhJH1efjb9BJK/rtRkbYn9+Ez
-GEbEULg1svsgnyWisFimI3uFvgI/swzr1eKVY3Sc8MQ3+Fdy3EkbDZ2+WAubhcEkorTWjzWz2fL1
-vKaYjeIsuEX6TVRUugHWudPzcEuQRLQf8ibZWjbQdBmpeQYBMg5x+xKLCJc=
-</X509Certificate>
-<X509Certificate>
-MIICtDCCAh2gAwIBAgIJAMDbehElPNKvMA0GCSqGSIb3DQEBBQUAMIGVMQswCQYDVQQGEwJLUjEO
-MAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQKDA1UaXplbiBUZXN0IENBMSMw
-IQYDVQQLDBpUVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEpMCcGA1UEAwwgVGl6ZW4gUHVibGlj
-IERpc3RyaWJ1dG9yIFJvb3QgQ0EwHhcNMTIxMDI5MTMwMjUwWhcNMjIxMDI3MTMwMjUwWjCBjzEL
-MAkGA1UEBhMCS1IxDjAMBgNVBAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6
-ZW4gVGVzdCBDQTEiMCAGA1UECwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEkMCIGA1UEAwwb
-VGl6ZW4gUHVibGljIERpc3RyaWJ1dG9yIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDe
-OTS/3nXvkDEmsFCJIvRlQ3RKDcxdWJJp625pFqHdmoJBdV+x6jl1raGK2Y1sp2Gdvpjc/z92yzAp
-bE/UVLPh/tRNZPeGhzU4ejDDm7kzdr2f7Ia0U98K+OoY12ucwg7TYNItj9is7Cj4blGfuMDzd2ah
-2AgnCGlwNwV/pv+uVQIDAQABoxAwDjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBACqJ
-KO33YdoGudwanZIxMdXuxnnD9R6u72ltKk1S4zPfMJJv482CRGCI4FK6djhlsI4i0Lt1SVIJEed+
-yc3qckGm19dW+4xdlkekon7pViEBWuyHw8OWv3RXtTum1+PGHjBJ2eYY4ZKIpz73U/1NC16sTB/0
-VhfnkHwPltmrpYVe
-</X509Certificate>
-</X509Data>
-</KeyInfo>
-<Object Id="prop"><SignatureProperties xmlns:dsp="http://www.w3.org/2009/xmldsig-properties"><SignatureProperty Id="profile" Target="#DistributorSignature"><dsp:Profile URI="http://www.w3.org/ns/widgets-digsig#profile"></dsp:Profile></SignatureProperty><SignatureProperty Id="role" Target="#DistributorSignature"><dsp:Role URI="http://www.w3.org/ns/widgets-digsig#role-distributor"></dsp:Role></SignatureProperty><SignatureProperty Id="identifier" Target="#DistributorSignature"><dsp:Identifier></dsp:Identifier></SignatureProperty></SignatureProperties></Object>
-</Signature>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<tproject xmlns="http://www.tizen.org/tproject">
- <platforms>
- <platform>
- <name>mobile-2.3</name>
- </platform>
- </platforms>
- <package>
- <blacklist/>
- </package>
-</tproject>
+++ /dev/null
-
-
-Instruction to use OAuth 2.0 Sample application.
-
-1. On launching the application you get a list of several service providers.
-
-2. The service providers along with the different type of autherization grant are provided.
-
-3. To get the access token, example for google access token, click on the Google button,
- You have to enter ur gmail credentials and it will response you with
- access token, refresh token and token expering time in a pop up.
-
-4. For implicit grant autherization(Facebook), after we enter the
- credentials we get acess token and expire time in response.
-
-5. For client cretential autherization grant(Twitter) we directly get
- the acess token using the predefined client id and secret.
-
-6. For password autherization grant(Salesforce) we directly get the
- acess token using the predefined client id and secret.
-
-7. In any time during the autherization process(code, implicit),
- we can come back to main page using the hardware back button or the
- cancel key and the appropriate reponse will be shown in the pop up.
-
-8. There is a button added in the list to clear all the cache and cookie data.
+++ /dev/null
-/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#define BUTTON_PADDING_WIDTH 170
-#define BUTTON_PADDING_HEIGHT 22
-
-group { name: "button_layout";
- parts {
- part { name: "top_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- fixed: 0 1;
- rel2.relative: 1.0 0.0;
- align: 0 0;
- }
- }
- part { name: "btn_expand_opened";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.5 1.0;
- to_y: "top_padding";
- }
- rel2 {
- relative: 0.5 1.0;
- to_y: "top_padding";
- }
- }
- }
- part { name: "btn_expand_opened_bottom_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- max: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.0 1.0;
- to_y: "btn_expand_opened";
- }
- rel2.to_y: "btn_expand_opened";
- }
- }
- part { name: "btn_expand_closed";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.5 1.0;
- to_y: "btn_expand_opened_bottom_padding";
- }
- rel2 {
- relative: 0.5 1.0;
- to_y: "btn_expand_opened_bottom_padding";
- }
- }
- }
- part { name: "btn_expand_closed_bottom_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- max: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0 1.0;
- to_y: "btn_expand_closed";
- }
- rel2.to_y: "btn_expand_closed";
- }
- }
- part { name: "btn_reorder";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.5 1.0;
- to_y: "btn_expand_closed_bottom_padding";
- }
- rel2 {
- relative: 0.5 1.0;
- to_y: "btn_expand_closed_bottom_padding";
- }
- }
- }
- part { name: "btn_reorder_bottom_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- max: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.0 1.0;
- to_y: "btn_reorder";
- }
- rel2.to_y: "btn_reorder";
- }
- }
- part { name: "btn_expand_add";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.5 1.0;
- to_y: "btn_reorder_bottom_padding";
- }
- rel2 {
- relative: 0.5 1.0;
- to_y: "btn_reorder_bottom_padding";
- }
- }
- }
- part { name: "btn_expand_add_bottom_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- max: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.0 1.0;
- to_y: "btn_expand_add";
- }
- rel2.to_y: "btn_expand_add";
- }
- }
- part { name: "btn_expand_delete";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.5 1.0;
- to_y: "btn_expand_add_bottom_padding";
- }
- rel2 {
- relative: 0.5 1.0;
- to_y: "btn_expand_add_bottom_padding";
- }
- }
- }
- part { name: "btn_expand_delete_bottom_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- max: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.0 1.0;
- to_y: "btn_expand_delete";
- }
- rel2.to_y: "btn_expand_delete";
- }
- }
- part { name: "btn_default";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.5 1.0;
- to_y: "btn_expand_delete_bottom_padding";
- }
- rel2 {
- relative: 0.5 1.0;
- to_y: "btn_expand_delete_bottom_padding";
- }
- }
- }
- part { name: "btn_default_bottom_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- max: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.0 1.0;
- to_y: "btn_default";
- }
- rel2.to_y: "btn_default";
- }
- }
- part { name: "btn_circle";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.5 1.0;
- to_y: "btn_default_bottom_padding";
- }
- rel2 {
- relative: 0.5 1.0;
- to_y: "btn_default_bottom_padding";
- }
- }
- }
- part { name: "btn_circle_bottom_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- max: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.0 1.0;
- to_y: "btn_circle";
- }
- rel2.to_y: "btn_circle";
- }
- }
- part { name: "btn_bottom";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- state: "default" 0.0;
- align: 0.5 0;
- rel1 {
- relative: 0.5 1.0;
- to_y: "btn_circle_bottom_padding";
- }
- rel2 {
- relative: 0.5 1.0;
- to_y: "btn_circle_bottom_padding";
- }
- }
- }
- part { name: "btn_bottom_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- max: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.0 1.0;
- to_y: "btn_bottom";
- }
- rel2.to_y: "btn_bottom";
- }
- }
- part { name: "btn_circle_text";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- state: "default" 0.0;
- align: 0.5 0;
- rel1 {
- relative: 0.5 1.0;
- to_y: "btn_bottom_padding";
- }
- rel2 {
- relative: 0.5 1.0;
- to_y: "btn_bottom_padding";
- }
- }
- }
- part { name: "btn_circle_text_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- max: BUTTON_PADDING_WIDTH BUTTON_PADDING_HEIGHT;
- fixed: 1 1;
- align: 0.5 0;
- rel1 {
- relative: 0.0 1.0;
- to_y: "btn_circle_text";
- }
- rel2.to_y: "btn_circle_text";
- }
- }
- part { name: "btn_contacts";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- state: "default" 0.0;
- align: 0.5 0;
- rel1 {
- relative: 0.5 1.0;
- to_y: "btn_circle_text_padding";
- }
- rel2 {
- relative: 0.5 1.0;
- to_y: "btn_circle_text_padding";
- }
- }
- }
- part { name: "bottom_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 BUTTON_PADDING_HEIGHT;
- align: 0.5 1.0;
- rel1 {
- relative: 0.0 1.0;
- to_y: "btn_contacts";
- }
- }
- }
- }
-}
-
-#undef BUTTON_PADDING_WIDTH
-#undef BUTTON_PADDING_HEIGHT
+++ /dev/null
-/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <app.h>
-#include <Elementary.h>
-#include <system_settings.h>
-#include <dlog.h>
-#include <vconf.h>
-#include <efl_extension.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "oauth2sample"
-
-#define KEY_END "XF86Stop"
-
-#if !defined(PACKAGE)
-#define PACKAGE "org.tizen.oauth2sample"
-#endif
-
-#define ELM_DEMO_EDJ "/opt/usr/apps/org.tizen.oauth2sample/res/ui_controls.edj"
-#define ICON_DIR "/opt/usr/apps/org.tizen.oauth2sample/res/images"
-
-
-typedef struct appdata {
- Evas_Object *win;
- Evas_Object *conform;
- Evas_Object *layout;
- Evas_Object *nf;
- Evas_Object *datetime;
- Evas_Object *popup;
- Evas_Object *button;
- struct tm saved_time;
-} appdata_s;
-
-void ctxpopup_cb(void *data, Evas_Object *obj, void *event_info);
-void colorselector_cb(void *data, Evas_Object *obj, void *event_info);
-void conformant_cb(void *data, Evas_Object *obj, void *event_info);
-void gengrid_cb(void *data, Evas_Object *obj, void *event_info);
-void genlist_cb(void *data, Evas_Object *obj, void *event_info);
-void drawer_cb(void *data, Evas_Object *obj, void *event_info);
-void fastscroll_cb(void *data, Evas_Object *obj, void *event_info);
-void naviframe_cb(void *data, Evas_Object *obj, void *event_info);
-void toolbar_cb(void *data, Evas_Object *obj, void *event_info);
-void toolbar_tab_style_cb(void *data, Evas_Object *obj, void *event_info);
-void toolbar_navigation_style_cb(void *data, Evas_Object *obj, void *event_info);
-void entry_cb(void *data, Evas_Object *obj, void *event_info);
-void datetime_cb(void *data, Evas_Object *obj, void *event_info);
-void slider_cb(void *data, Evas_Object *obj, void *event_info);
-void progressbar_cb(void *data, Evas_Object *obj, void *event_info);
-
-void start_google_oauth_cb(void *data, Evas_Object *obj, void *event_info);
-void start_fb_oauth_cb(void *data, Evas_Object *obj, void *event_info);
-void start_github_oauth_cb(void *data, Evas_Object *obj, void *event_info);
-void start_linkedin_oauth_cb(void *data, Evas_Object *obj, void *event_info);
-void start_twitter_apponly_oauth_cb(void *data, Evas_Object *obj, void *event_info);
-void start_google_refresh_token_cb(void *data, Evas_Object *obj, void *event_info);
-void start_windows_oauth_cb(void *data, Evas_Object *obj, void *event_info);
-void start_linkedin_oauth_code_cb(void *data, Evas_Object *obj, void *event_info);
-void start_salesforce_oauth_code_cb(void *data, Evas_Object *obj, void *event_info);
-void clear_cache_and_cookies_cb(void *data, Evas_Object *obj, void *event_info);
-
-void check_cb(void *data, Evas_Object *obj, void *event_info);
-void nocontents_cb(void *data, Evas_Object *obj, void *event_info);
-void radio_cb(void *data, Evas_Object *obj, void *event_info);
-void pagecontrol_cb(void *data, Evas_Object *obj, void *event_info);
-void pagecontrol_horizontal_cb(void *data, Evas_Object *obj, void *event_info);
-void pagecontrol_horizontal_loop_cb(void *data, Evas_Object *obj, void *event_info);
-void popup_cb(void *data, Evas_Object *obj, void *event_info);
-void handler_cb(void *data, Evas_Object *obj, void *event_info);
-void multibuttonentry_cb(void *data, Evas_Object *obj, void *event_info);
-void spinner_cb(void *data, Evas_Object *obj, void *event_info);
-void label_cb(void *data, Evas_Object *obj, void *event_info);
-void label_text_styles_cb(void *data, Evas_Object *obj, void *event_info);
-void label_linebreak_modes_cb(void *data, Evas_Object *obj, void *event_info);
-void label_slide_cb(void *data, Evas_Object *obj, void *event_info);
-void label_ellipsis_cb(void *data, Evas_Object *obj, void *event_info);
-void label_color_styles_cb(void *data, Evas_Object *obj, void *event_info);
-void notify_cb(void *data, Evas_Object *obj, void *event_info);
-void bg_cb(void *data, Evas_Object *obj, void *event_info);
+++ /dev/null
-/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-collections {
- base_scale: 1.8;
- #include "../edc_resource/button.edc"
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#include "main.h"
-#include <tizen.h>
-
-static void
-win_delete_request_cb(void *data, Evas_Object *obj, void *event_info)
-{
- /* To make your application go to background,
- Call the elm_win_lower() instead
- Evas_Object *win = (Evas_Object *) data;
- elm_win_lower(win); */
- ui_app_exit();
-}
-
-static void
-list_selected_cb(void *data, Evas_Object *obj, void *event_info)
-{
- Elm_Object_Item *it = event_info;
- elm_list_item_selected_set(it, EINA_FALSE);
-}
-
-static Eina_Bool
-naviframe_pop_cb(void *data, Elm_Object_Item *it)
-{
- ui_app_exit();
- return EINA_FALSE;
-}
-
-static void
-create_list_view(appdata_s *ad)
-{
- Evas_Object *list;
- Evas_Object *btn;
- Evas_Object *nf = ad->nf;
- Elm_Object_Item *nf_it;
-
- /* List */
- list = elm_list_add(nf);
- elm_list_mode_set(list, ELM_LIST_COMPRESS);
- evas_object_smart_callback_add(list, "selected", list_selected_cb,
- NULL);
-
- /* Main Menu Items Here */
- elm_list_item_append(list, "Google [Code]", NULL, NULL,
- start_google_oauth_cb, nf);
- /* Google uses code authentication grant type. [Code] [Single API] */
-
- elm_list_item_append(list, "Facebook [Implicit]", NULL, NULL,
- start_fb_oauth_cb, nf);
- /* Facebook uses Implicit authentication grant type. [Implicit] */
-
- elm_list_item_append(list, "GitHub [Code]", NULL, NULL,
- start_github_oauth_cb, nf);
- /* GitHub uses code authentication grant type. [Code] [Non-std] */
-
- elm_list_item_append(list, "Twitter [Client Credential]", NULL, NULL,
- start_twitter_apponly_oauth_cb, nf);
- /* Twitter uses Client Credential authentication grant type.
- * [Client Credential]
- */
-
- /*
- * elm_list_item_append(list, "[Password] TODO", NULL, NULL, NULL, nf);
- */
- /* Google uses Password authentication grant type. [Password] */
-
- elm_list_item_append(list, "Google [Refresh Token]", NULL, NULL,
- start_google_refresh_token_cb, nf);
- /*
- * Gets Google Refresh Token authentication grant type.
- * [Refresh Token]
- */
-
- elm_list_item_append(list, "Windows Live [Code]", NULL, NULL,
- start_windows_oauth_cb, nf);
- /*
- * Windows Live uses code authentication grant type.
- * [Code] [Split API]
- * */
-
- elm_list_item_append(list, "LinkedIn [Code]", NULL, NULL,
- start_linkedin_oauth_code_cb, nf);
- /* LinkedIn uses code authentication grant type. [Code] [Split API] */
-
- elm_list_item_append(list, "Salesforce [Password]", NULL, NULL,
- start_salesforce_oauth_code_cb, nf);
- /*SalesForce uses password authentication grant type. [Password] */
-
- elm_list_item_append(list, "Clear all cache and cookie data", NULL,
- NULL, clear_cache_and_cookies_cb, nf);
-
- elm_list_go(list);
-
- /* This button is set for devices which doesn't have H/W back key. */
- btn = elm_button_add(nf);
- elm_object_style_set(btn, "naviframe/end_btn/default");
- nf_it = elm_naviframe_item_push(nf, "OAuth 2.0 Sample", btn, NULL,
- list, NULL);
- elm_naviframe_item_pop_cb_set(nf_it, naviframe_pop_cb, ad->win);
-}
-
-static void
-create_base_gui(appdata_s *ad)
-{
- /*
- * Widget Tree
- * Window
- * - conform
- * - layout main
- * - naviframe */
-
- /* Window */
- ad->win = elm_win_util_standard_add(PACKAGE, PACKAGE);
- elm_win_conformant_set(ad->win, EINA_TRUE);
- elm_win_autodel_set(ad->win, EINA_TRUE);
-
- if (elm_win_wm_rotation_supported_get(ad->win)) {
- int rots[4] = { 0, 90, 180, 270 };
- elm_win_wm_rotation_available_rotations_set(ad->win,
- (const int *)(&rots), 4);
- }
-
- evas_object_smart_callback_add(ad->win, "delete,request",
- win_delete_request_cb, NULL);
-
- /* Conformant */
- ad->conform = elm_conformant_add(ad->win);
- evas_object_size_hint_weight_set(ad->conform, EVAS_HINT_EXPAND,
- EVAS_HINT_EXPAND);
- elm_win_resize_object_add(ad->win, ad->conform);
- evas_object_show(ad->conform);
-
- /* Indicator */
- /* elm_win_indicator_mode_set(ad->win, ELM_WIN_INDICATOR_SHOW); */
-
- /* Base Layout */
- ad->layout = elm_layout_add(ad->conform);
- evas_object_size_hint_weight_set(ad->layout, EVAS_HINT_EXPAND,
- EVAS_HINT_EXPAND);
- elm_layout_theme_set(ad->layout, "layout", "application", "default");
- evas_object_show(ad->layout);
-
- elm_object_content_set(ad->conform, ad->layout);
-
- /* Naviframe */
- ad->nf = elm_naviframe_add(ad->layout);
- create_list_view(ad);
- elm_object_part_content_set(ad->layout, "elm.swallow.content", ad->nf);
- eext_object_event_callback_add(ad->nf, EEXT_CALLBACK_BACK,
- eext_naviframe_back_cb, NULL);
- eext_object_event_callback_add(ad->nf, EEXT_CALLBACK_MORE,
- eext_naviframe_more_cb, NULL);
-
- /* Show window after base gui is set up */
- evas_object_show(ad->win);
-}
-
-static bool
-app_create(void *data)
-{
- /* Hook to take necessary actions before main event loop starts
- * Initialize UI resources and application's data
- * If this function returns true, the main loop of application starts
- * If this function returns false, the application is terminated
- */
- appdata_s *ad = data;
-
- elm_app_base_scale_set(1.8);
- create_base_gui(ad);
-
- return true;
-}
-
-static void
-app_control(app_control_h app_control, void *data)
-{
- /* Handle the launch request. */
-}
-
-static void
-app_pause(void *data)
-{
- /* Take necessary actions when application becomes invisible. */
-}
-
-static void
-app_resume(void *data)
-{
- /* Take necessary actions when application becomes visible. */
-}
-
-static void
-app_terminate(void *data)
-{
- /* Release all resources. */
-}
-
-static void
-ui_app_lang_changed(app_event_info_h event_info, void *user_data)
-{
- /*APP_EVENT_LANGUAGE_CHANGED*/
- char *locale = NULL;
- system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE,
- &locale);
- elm_language_set(locale);
- free(locale);
- return;
-}
-
-static void
-ui_app_orient_changed(app_event_info_h event_info, void *user_data)
-{
- /*APP_EVENT_DEVICE_ORIENTATION_CHANGED*/
- return;
-}
-
-static void
-ui_app_region_changed(app_event_info_h event_info, void *user_data)
-{
- /*APP_EVENT_REGION_FORMAT_CHANGED*/
-}
-
-static void
-ui_app_low_battery(app_event_info_h event_info, void *user_data)
-{
- /*APP_EVENT_LOW_BATTERY*/
-}
-
-static void
-ui_app_low_memory(app_event_info_h event_info, void *user_data)
-{
- /*APP_EVENT_LOW_MEMORY*/
-}
-
-int
-main(int argc, char *argv[])
-{
- appdata_s ad = {0,};
- int ret = 0;
-
- ui_app_lifecycle_callback_s event_callback = {0,};
- app_event_handler_h handlers[5] = {NULL, };
-
- event_callback.create = app_create;
- event_callback.terminate = app_terminate;
- event_callback.pause = app_pause;
- event_callback.resume = app_resume;
- event_callback.app_control = app_control;
-
- ui_app_add_event_handler(&handlers[APP_EVENT_LOW_BATTERY],
- APP_EVENT_LOW_BATTERY, ui_app_low_battery, &ad);
- ui_app_add_event_handler(&handlers[APP_EVENT_LOW_MEMORY],
- APP_EVENT_LOW_MEMORY, ui_app_low_memory, &ad);
- ui_app_add_event_handler(
- &handlers[APP_EVENT_DEVICE_ORIENTATION_CHANGED],
- APP_EVENT_DEVICE_ORIENTATION_CHANGED,
- ui_app_orient_changed, &ad);
- ui_app_add_event_handler(&handlers[APP_EVENT_LANGUAGE_CHANGED],
- APP_EVENT_LANGUAGE_CHANGED, ui_app_lang_changed, &ad);
- ui_app_add_event_handler(&handlers[APP_EVENT_REGION_FORMAT_CHANGED],
- APP_EVENT_REGION_FORMAT_CHANGED, ui_app_region_changed, &ad);
- ui_app_remove_event_handler(handlers[APP_EVENT_LOW_MEMORY]);
-
- ret = ui_app_main(argc, argv, &event_callback, &ad);
- if (ret != APP_ERROR_NONE) {
- dlog_print(DLOG_ERROR, LOG_TAG, "app_main() failed. err = %d",
- ret);
- }
-
- return ret;
-}
+++ /dev/null
-/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include "main.h"
-
-#include <oauth2.h>
-
-#define GOOGLE_CLIENT_ID "53492317821.apps.googleusercontent.com"
-#define GOOGLE_CLIENT_SECRET "2SEBA-F4EV9jkqzT1UGJe7Aq"
-
-#define WINDOWS_CLIENT_ID "0000000044139C34"
-#define WINDOWS_CLIENT_SECRET "lq-od8DUGe9BrcaI9qVHM2Q9krFUNZDd"
-
-#define LINKEDIN_CLIENT_ID "782p0522d2ri2i"
-#define LINKEDIN_CLIENT_SECRET "Ibj6HdUpZj2M4XIs"
-
-/* #define _THIS_PACKAGE "org.tizen.oauth2sample"
- *
- * #ifdef LOG_TAG
- * #undef LOG_TAG
- * #endif
- * #define LOG_TAG _THIS_PACKAGE
-*/
-
-#ifndef _ERR
-#define _ERR(fmt, args...) LOGE("[%s:%d] "fmt"\n", __func__, __LINE__, ##args)
-#endif
-
-#ifndef _DBG
-#define _DBG(fmt, args...) LOGD("[%s:%d] "fmt"\n", __func__, __LINE__, ##args)
-#endif
-
-#ifndef _INFO
-#define _INFO(fmt, args...) LOGI("[%s:%d] "fmt"\n", __func__, __LINE__, ##args)
-#endif
-
-static oauth2_manager_h mgr1 = NULL;
-char *google_refresh_token = NULL;
-char *popStr;
-Evas_Object *win_data = NULL;
-int flag = 0;
-
-static void
-popup_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
-{
- Evas_Object *popup = data;
- evas_object_del(popup);
-}
-
-static void
-create_popup(char *popup_str, void * data)
-{
- Evas_Object *popup = elm_popup_add(win_data);
-
- if (flag == 0)
- elm_object_part_text_set(popup, "title,text", "Response");
- else if (flag == 1)
- elm_object_part_text_set(popup, "title,text", "Success");
-
- elm_popup_content_text_wrap_type_set(popup, ELM_WRAP_MIXED);
- elm_object_text_set(popup, popup_str);
-
- Evas_Object *btn1 = elm_button_add(popup);
- elm_object_style_set(btn1, "popup");
- elm_object_text_set(btn1, "OK");
- elm_object_part_content_set(popup, "button1", btn1);
- evas_object_smart_callback_add(btn1, "clicked", popup_btn_clicked_cb,
- popup);
-
- evas_object_resize(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_move(popup, 10, 10);
-
- elm_popup_orient_set(popup, ELM_POPUP_ORIENT_CENTER);
- evas_object_show(popup);
- flag = 0;
- return;
-}
-
-void
-bundle_cb(const char *key, const int type, const bundle_keyval_t *kv,
- void *user_data)
-{
- char *display_str = (char *)user_data;
-
- char *err_val = NULL;
- size_t err_len = 0;
- bundle_keyval_get_basic_val((bundle_keyval_t *)kv, (void **)&err_val,
- &err_len);
- if (err_val) {
- strcat(display_str, key);
- strcat(display_str, "=");
- strcat(display_str, err_val);
- strcat(display_str, ",");
- }
-}
-
-static void
-btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
-{
- int btn_num = (int)data;
-
- printf("clicked event on Button:%d\n", btn_num);
-}
-
-static Evas_Object*
-create_scroller(Evas_Object *parent)
-{
- Evas_Object *scroller = elm_scroller_add(parent);
- elm_scroller_bounce_set(scroller, EINA_FALSE, EINA_TRUE);
- elm_scroller_policy_set(scroller, ELM_SCROLLER_POLICY_OFF,
- ELM_SCROLLER_POLICY_AUTO);
- evas_object_show(scroller);
-
- return scroller;
-}
-
-static Evas_Object*
-create_button_view(Evas_Object *parent)
-{
- Evas_Object *btn, *img, *box;
-
- box = elm_box_add(parent);
- evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND,
- EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_box_padding_set(box, 0, 5 * elm_config_scale_get());
- evas_object_show(box);
-
- /* icon_reorder style */
- btn = elm_button_add(box);
- elm_object_style_set(btn, "icon_reorder");
- evas_object_smart_callback_add(btn, "clicked", btn_clicked_cb,
- (void *)1);
- evas_object_show(btn);
- elm_box_pack_end(box, btn);
-
- /* icon_expand_add style */
- btn = elm_button_add(box);
- elm_object_style_set(btn, "icon_expand_add");
- evas_object_smart_callback_add(btn, "clicked", btn_clicked_cb,
- (void *)2);
- evas_object_show(btn);
- elm_box_pack_end(box, btn);
-
- /* icon_expand_delete style */
- btn = elm_button_add(box);
- elm_object_style_set(btn, "icon_expand_delete");
- evas_object_smart_callback_add(btn, "clicked", btn_clicked_cb,
- (void *)3);
- evas_object_show(btn);
- elm_box_pack_end(box, btn);
-
- /* default style */
- btn = elm_button_add(box);
- elm_object_text_set(btn, "default");
- evas_object_size_hint_min_set(btn, ELM_SCALE_SIZE(150),
- ELM_SCALE_SIZE(58));
- evas_object_smart_callback_add(btn, "clicked", btn_clicked_cb,
- (void *)4);
- evas_object_show(btn);
- elm_box_pack_end(box, btn);
-
- /* btn_circle style */
- btn = elm_button_add(box);
- elm_object_style_set(btn, "circle");
- elm_object_text_set(btn, "circle twoline");
- img = elm_image_add(btn);
- elm_image_file_set(img, ICON_DIR"/core_icon_brightness.png", NULL);
- elm_image_resizable_set(img, EINA_TRUE, EINA_TRUE);
- elm_object_part_content_set(btn, "icon", img);
- evas_object_smart_callback_add(btn, "clicked", btn_clicked_cb,
- (void *)5);
- evas_object_show(btn);
- elm_box_pack_end(box, btn);
-
- /* bottom style */
- btn = elm_button_add(box);
- elm_object_style_set(btn, "bottom");
- elm_object_text_set(btn, "bottom");
- evas_object_size_hint_min_set(btn, ELM_SCALE_SIZE(150),
- ELM_SCALE_SIZE(58));
- evas_object_smart_callback_add(btn, "clicked", btn_clicked_cb,
- (void *)6);
- evas_object_show(btn);
- elm_box_pack_end(box, btn);
-
- /* contacts style */
- btn = elm_button_add(box);
- elm_object_style_set(btn, "contacts");
- elm_object_text_set(btn, "contacts");
- evas_object_smart_callback_add(btn, "clicked", btn_clicked_cb,
- (void *)7);
- evas_object_show(btn);
- elm_box_pack_end(box, btn);
-
- btn = elm_button_add(box);
- elm_object_style_set(btn, "option");
- evas_object_smart_callback_add(btn, "clicked", btn_clicked_cb,
- (void *)8);
- evas_object_show(btn);
- elm_box_pack_end(box, btn);
-
- return box;
-}
-
-void
-token_response_cb(oauth2_response_h response, void *user_data)
-{
- _INFO("token_response_cb");
-
- char *acc_token = NULL;
- oauth2_response_get_access_token(response, &acc_token);
-
- char *ref_token = NULL;
- oauth2_response_get_refresh_token(response, &ref_token);
- google_refresh_token = ref_token;
-
- long long int expires_in = 0;
- oauth2_response_get_expires_in(response, &expires_in);
-
- char displayStr[1024] = {0,};
- if (acc_token) {
- displayStr[0] = '\0';
- strcpy(displayStr, "access token= ");
- strcat(displayStr, acc_token);
- } else {
- oauth2_error_h e_handle = NULL;
-
- oauth2_response_get_error(response, &e_handle);
- char *error_val = NULL;
- oauth2_error_get_custom_data(e_handle, "error", &error_val);
- if (error_val)
- strcpy(displayStr, error_val);
- else {
- int error_code = 0;
- int platform_error_code = 0;
-
- oauth2_error_get_code(e_handle, &error_code,
- &platform_error_code);
- if (error_code != 0 || platform_error_code != 0) {
- sprintf(displayStr, "Error=[%d][%d]",
- error_code, platform_error_code);
- } else
- strcpy(displayStr, "Unknown server error");
- }
- }
-
- if (ref_token) {
- strcat(displayStr, "\r\n");
- strcat(displayStr, "refresh token = ");
- strcat(displayStr, ref_token);
- }
-
- if (expires_in != 0) {
- strcat(displayStr, "\r\n");
- strcat(displayStr, "expires in= ");
- char expires_str[128] = {0};
- sprintf(expires_str, "%lld", expires_in);
- strcat(displayStr, expires_str);
- }
-
- create_popup(displayStr , win_data);
- return;
-}
-
-
-void
-refresh_token_response_cb(oauth2_response_h response, void *user_data)
-{
- _INFO("token_response_cb");
-
- char *acc_token = NULL;
- oauth2_response_get_access_token(response, &acc_token);
-
- char *ref_token = NULL;
- oauth2_response_get_refresh_token(response, &ref_token);
-
- if (ref_token) {
- oauth2_manager_h mgr = (oauth2_manager_h) user_data;
-
- oauth2_request_h request = NULL;
-
- int ret = oauth2_request_create(&request);
-
- ret = oauth2_request_set_refresh_token_url(request,
- "https://www.googleapis.com/oauth2/v3/token");
-
- ret = oauth2_request_set_refresh_token(request, ref_token);
-
- ret = oauth2_request_set_client_id(request, GOOGLE_CLIENT_ID);
-
- ret = oauth2_request_set_client_secret(request,
- GOOGLE_CLIENT_SECRET);
-
- ret = oauth2_request_set_grant_type(request,
- OAUTH2_GRANT_TYPE_REFRESH);
-
- ret = oauth2_request_set_client_authentication_type(request,
- OAUTH2_CLIENT_AUTHENTICATION_TYPE_REQUEST_BODY);
-
- if (mgr && request) {
- mgr1 = mgr;
-
- ret = oauth2_manager_refresh_access_token(mgr, request,
- token_response_cb, NULL);
- }
- } else {
- char displayStr[1024] = {0,};
-
- oauth2_error_h e_handle = NULL;
-
- oauth2_response_get_error(response, &e_handle);
- char *error_val = NULL;
- oauth2_error_get_custom_data(e_handle, "error", &error_val);
- if (error_val)
- strcpy(displayStr, error_val);
- else {
- int error_code = 0;
- int platform_error_code = 0;
-
- oauth2_error_get_code(e_handle, &error_code,
- &platform_error_code);
-
- if (error_code != 0 || platform_error_code != 0)
- sprintf(displayStr, "Error=[%d][%d]",
- error_code, platform_error_code);
- else {
- strcpy(displayStr, "Unknown server error");
- }
- }
-
- create_popup(displayStr , win_data);
- }
-}
-
-void
-clear_cache_and_cookies_cb(void *data, Evas_Object *obj, void *event_info)
-{
- win_data = (Evas_Object *) data;
-
- if (mgr1 != NULL) {
- oauth2_manager_clear_cache(mgr1);
- oauth2_manager_clear_cookies(mgr1);
-
- mgr1 = NULL;
-
- flag = 1;
-
- popStr = "cache and cookie data cleared!!!";
- create_popup(popStr , win_data);
- return;
- }
-}
-
-void
-code_access_token_cb(oauth2_response_h response, void *user_data)
-{
- _INFO("auth2_access_token_cb");
-
- char *acc_token = NULL;
- char displayStr[1024] = {0,};
- oauth2_response_get_access_token(response, &acc_token);
- if (acc_token) {
- displayStr[0] = '\0';
- strcpy(displayStr, "access token= ");
- strcat(displayStr, acc_token);
- } else {
- oauth2_error_h e_handle = NULL;
-
- oauth2_response_get_error(response, &e_handle);
- char *error_val = NULL;
- oauth2_error_get_custom_data(e_handle, "error", &error_val);
- if (error_val)
- strcpy(displayStr, error_val);
- else {
- int error_code = 0;
- int platform_error_code = 0;
-
- oauth2_error_get_code(e_handle, &error_code,
- &platform_error_code);
- if (error_code != 0 || platform_error_code != 0) {
- sprintf(displayStr, "Error=[%d][%d]",
- error_code, platform_error_code);
- } else {
- strcpy(displayStr, "Unknown server error");
- }
- }
- }
- create_popup(displayStr , win_data);
-}
-
-void
-grant_response_cb(oauth2_response_h response, void *user_data)
-{
- _INFO("grant_response_cb");
-
- char *auth_code = NULL;
- oauth2_response_get_authorization_code(response, &auth_code);
- if (auth_code) {
- oauth2_manager_h mgr = NULL;
- int ret = oauth2_manager_create(&mgr);
-
- oauth2_request_h request = (oauth2_request_h) user_data;
-
- ret = oauth2_request_set_authorization_code(request, auth_code);
-
- if (mgr && request) {
- ret = oauth2_manager_request_access_token(mgr,
- request, code_access_token_cb, NULL);
- }
- } else {
- char displayStr[1024] = {0,};
-
- oauth2_error_h e_handle = NULL;
-
- oauth2_response_get_error(response, &e_handle);
- char *error_val = NULL;
- oauth2_error_get_custom_data(e_handle, "error", &error_val);
- if (error_val) {
- strcpy(displayStr, error_val);
- } else {
- int error_code = 0;
- int platform_error_code = 0;
-
- oauth2_error_get_code(e_handle, &error_code,
- &platform_error_code);
- if (error_code != 0 || platform_error_code != 0) {
- sprintf(displayStr, "Error=[%d][%d]",
- error_code, platform_error_code);
- } else {
- strcpy(displayStr, "Unknown server error");
- }
- }
-
- create_popup(displayStr , win_data);
- }
-}
-
-
-void
-start_google_oauth_cb(void *data, Evas_Object *obj, void *event_info)
-{
- win_data = (Evas_Object *) data;
-
- oauth2_manager_h mgr = NULL;
- int ret = oauth2_manager_create(&mgr);
-
- oauth2_request_h request = NULL;
- ret = oauth2_request_create(&request);
-
- ret = oauth2_request_set_auth_end_point_url(request,
- "https://accounts.google.com/o/oauth2/auth");
-
- ret = oauth2_request_set_token_end_point_url(request,
- "https://accounts.google.com/o/oauth2/token");
-
- ret = oauth2_request_set_redirection_url(request,
- "https://localhost:8080");
-
- ret = oauth2_request_set_client_id(request, GOOGLE_CLIENT_ID);
-
- ret = oauth2_request_set_client_secret(request, GOOGLE_CLIENT_SECRET);
-
- ret = oauth2_request_set_scope(request, "email");
-
- ret = oauth2_request_set_response_type(request,
- OAUTH2_RESPONSE_TYPE_CODE);
-
- if (mgr && request) {
- mgr1 = mgr;
-
- ret = oauth2_manager_request_token(mgr, request,
- token_response_cb, NULL);
- }
-}
-
-
-void
-start_fb_oauth_cb(void *data, Evas_Object *obj, void *event_info)
-{
- oauth2_manager_h mgr = NULL;
- int ret = oauth2_manager_create(&mgr);
-
- win_data = (Evas_Object *) data;
-
- oauth2_request_h request = NULL;
- ret = oauth2_request_create(&request);
-
- ret = oauth2_request_set_auth_end_point_url(request,
- "https://www.facebook.com/dialog/oauth");
-
- ret = oauth2_request_set_redirection_url(request,
- "https://developer.tizen.org");
-
- ret = oauth2_request_set_client_id(request, "280875681986395");
-
- ret = oauth2_request_set_scope(request, "read_stream");
-
- ret = oauth2_request_set_response_type(request,
- OAUTH2_RESPONSE_TYPE_TOKEN);
-
- if (mgr && request) {
- mgr1 = mgr;
-
- ret = oauth2_manager_request_token(mgr, request,
- token_response_cb, NULL);
- }
-}
-
-
-void
-start_github_oauth_cb(void *data, Evas_Object *obj, void *event_info)
-{
- oauth2_manager_h mgr = NULL;
- int ret = oauth2_manager_create(&mgr);
-
- oauth2_request_h request = NULL;
- ret = oauth2_request_create(&request);
-
- win_data = (Evas_Object *) data;
-
- ret = oauth2_request_set_auth_end_point_url(request,
- "https://github.com/login/oauth/authorize");
-
- ret = oauth2_request_set_token_end_point_url(request,
- "https://github.com/login/oauth/access_token");
-
- ret = oauth2_request_set_redirection_url(request,
- "https://developer.tizen.org");
-
- ret = oauth2_request_set_client_id(request, "aa5ded12ececad47a22c");
-
- ret = oauth2_request_set_client_secret(request,
- "755806ea84c63f967b82d7fc451cf886d037f8f2");
-
- int state_int = rand()%1000;
- char state_str[128] = {0,};
- snprintf(state_str, 127, "%d", state_int);
- ret = oauth2_request_set_state(request, state_str);
-
- ret = oauth2_request_set_scope(request, "user");
- ret = oauth2_request_set_response_type(request,
- OAUTH2_RESPONSE_TYPE_CODE);
-
- if (mgr && request) {
- mgr1 = mgr;
- ret = oauth2_manager_request_token(mgr, request,
- token_response_cb, NULL);
- }
-}
-
-void
-start_google_refresh_token_cb(void *data, Evas_Object *obj, void *event_info)
-{
- win_data = (Evas_Object *) data;
-
- oauth2_manager_h mgr = NULL;
- int ret = oauth2_manager_create(&mgr);
-
- oauth2_request_h request = NULL;
- ret = oauth2_request_create(&request);
-
- ret = oauth2_request_set_auth_end_point_url(request,
- "https://accounts.google.com/o/oauth2/auth");
-
- ret = oauth2_request_set_token_end_point_url(request,
- "https://accounts.google.com/o/oauth2/token");
-
- ret = oauth2_request_set_redirection_url(request,
- "https://localhost:8080");
-
- ret = oauth2_request_set_client_id(request, GOOGLE_CLIENT_ID);
-
- ret = oauth2_request_set_client_secret(request, GOOGLE_CLIENT_SECRET);
-
- ret = oauth2_request_set_scope(request, "email");
-
- ret = oauth2_request_set_response_type(request,
- OAUTH2_RESPONSE_TYPE_CODE);
-
- if (mgr && request) {
- ret = oauth2_manager_request_token(mgr, request,
- refresh_token_response_cb, mgr);
- }
-}
-
-void
-start_twitter_apponly_oauth_cb(void *data, Evas_Object *obj, void *event_info)
-{
- oauth2_manager_h mgr = NULL;
- int ret = oauth2_manager_create(&mgr);
-
- oauth2_request_h request = NULL;
- ret = oauth2_request_create(&request);
-
- win_data = (Evas_Object *) data;
-
- ret = oauth2_request_set_auth_end_point_url(request,
- "https://api.twitter.com/oauth2/token");
-
- ret = oauth2_request_set_token_end_point_url(request,
- "https://api.twitter.com/oauth2/token");
-
- ret = oauth2_request_set_redirection_url(request,
- "https://developer.tizen.org");
-
- ret = oauth2_request_set_client_id(request, "PiQeUGnE96DQxEw36rAPw");
-
- ret = oauth2_request_set_client_secret(request,
- "qxLHpdcAg5fCmE6b46GXO8UjDefr6H5C9jXF2SOFAE");
-
- ret = oauth2_request_set_grant_type(request,
- OAUTH2_GRANT_TYPE_CLIENT_CREDENTIALS);
-
- ret = oauth2_request_set_client_authentication_type(request,
- OAUTH2_CLIENT_AUTHENTICATION_TYPE_BASIC);
-
- if (mgr && request) {
- mgr1 = mgr;
-
- ret = oauth2_manager_request_token(mgr, request,
- token_response_cb, NULL);
- }
-}
-
-
-void
-start_linkedin_oauth_cb(void *data, Evas_Object *obj, void *event_info)
-{
- oauth2_manager_h mgr = NULL;
- int ret = oauth2_manager_create(&mgr);
-
- oauth2_request_h request = NULL;
- ret = oauth2_request_create(&request);
-
- ret = oauth2_request_set_auth_end_point_url(request,
- "https://www.linkedin.com/uas/oauth2/authorization");
-
- ret = oauth2_request_set_token_end_point_url(request,
- "https://www.linkedin.com/uas/oauth2/accessToken");
-
- ret = oauth2_request_set_redirection_url(request,
- "https://developer.tizen.org");
-
- ret = oauth2_request_set_client_id(request, "");
-
- ret = oauth2_request_set_client_secret(request, "");
-
- int state_int = rand()%1000;
- char state_str[128] = {0,};
- snprintf(state_str, 127, "%d", state_int);
- ret = oauth2_request_set_state(request, state_str);
-
- ret = oauth2_request_set_response_type(request,
- OAUTH2_RESPONSE_TYPE_CODE);
-
- if (mgr && request) {
- mgr1 = mgr;
-
- ret = oauth2_manager_request_token(mgr, request,
- token_response_cb, NULL);
- }
-}
-
-
-void
-start_windows_oauth_cb(void *data, Evas_Object *obj, void *event_info)
-{
- oauth2_manager_h mgr = NULL;
- int ret = oauth2_manager_create(&mgr);
-
- oauth2_request_h request = NULL;
- ret = oauth2_request_create(&request);
-
- win_data = (Evas_Object *) data;
-
- ret = oauth2_request_set_auth_end_point_url(request,
- "https://login.live.com/oauth20_authorize.srf");
-
- ret = oauth2_request_set_token_end_point_url(request,
- "https://login.live.com/oauth20_token.srf");
-
- ret = oauth2_request_set_redirection_url(request,
- "https://developer.tizen.org");
-
- ret = oauth2_request_set_client_id(request, WINDOWS_CLIENT_ID);
-
- ret = oauth2_request_set_client_secret(request, WINDOWS_CLIENT_SECRET);
-
- ret = oauth2_request_set_scope(request, "wl.basic");
-
- ret = oauth2_request_set_grant_type(request,
- OAUTH2_GRANT_TYPE_AUTH_CODE);
-
- ret = oauth2_request_set_response_type(request,
- OAUTH2_RESPONSE_TYPE_CODE);
-
- if (mgr && request) {
- mgr1 = mgr;
-
- ret = oauth2_manager_request_authorization_grant(mgr,
- request, grant_response_cb, request);
- }
-}
-
-
-void
-start_linkedin_oauth_code_cb(void *data, Evas_Object *obj, void *event_info)
-{
- oauth2_manager_h mgr = NULL;
- int ret = oauth2_manager_create(&mgr);
-
- oauth2_request_h request = NULL;
- ret = oauth2_request_create(&request);
-
- win_data = (Evas_Object *) data;
-
- ret = oauth2_request_set_auth_end_point_url(request,
- "https://www.linkedin.com/uas/oauth2/authorization");
-
- ret = oauth2_request_set_token_end_point_url(request,
- "https://www.linkedin.com/uas/oauth2/accessToken");
-
- ret = oauth2_request_set_redirection_url(request,
- "https://developer.tizen.org");
-
- ret = oauth2_request_set_client_id(request, LINKEDIN_CLIENT_ID);
-
- ret = oauth2_request_set_client_secret(request, LINKEDIN_CLIENT_SECRET);
-
- ret = oauth2_request_set_scope(request, "r_basicprofile");
-
- ret = oauth2_request_set_state(request, "DCEEFWF45453sdffef424");
-
- ret = oauth2_request_set_grant_type(request,
- OAUTH2_GRANT_TYPE_AUTH_CODE);
-
- ret = oauth2_request_set_response_type(request,
- OAUTH2_RESPONSE_TYPE_CODE);
-
- if (mgr && request) {
- mgr1 = mgr;
-
- ret = oauth2_manager_request_authorization_grant(mgr,
- request, grant_response_cb, request);
-
- }
-}
-
-void
-start_salesforce_oauth_code_cb(void *data, Evas_Object *obj, void *event_info)
-{
- oauth2_manager_h mgr = NULL;
- int ret = oauth2_manager_create(&mgr);
-
- oauth2_request_h request = NULL;
- ret = oauth2_request_create(&request);
-
- win_data = (Evas_Object *) data;
-
- ret = oauth2_request_set_auth_end_point_url(request,
- "https://login.salesforce.com/services/oauth2/authorize");
-
- ret = oauth2_request_set_token_end_point_url(request,
- "https://login.salesforce.com/services/oauth2/token");
-
- ret = oauth2_request_set_redirection_url(request,
- "https://developer.tizen.org");
-
- ret = oauth2_request_set_client_id(request,
- "3MVG9ZL0ppGP5UrCxqVnY_izjlRzW6tCeDYs64KXns0wGEgbtfqK8cWx16Y4gM3wx2htt0GuoDiQ.CkX2ZuI1");
-
- ret = oauth2_request_set_client_secret(request, "3431205550072092349");
-
- ret = oauth2_request_set_grant_type(request,
- OAUTH2_GRANT_TYPE_PASSWORD);
-
- ret = oauth2_request_set_user_name(request, "sam_test1@outlook.com");
-
- ret = oauth2_request_set_password(request,
- "samsung@1gOeXzn5nKDGVNNQP4kJYEqNPp");
-
- if (mgr && request) {
- mgr1 = mgr;
-
- ret = oauth2_manager_request_token(mgr, request,
- token_response_cb, request);
- }
-}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="2.3" package="org.tizen.oauth2sample" version="1.0.0">
- <profile name="mobile"/>
- <ui-application appid="org.tizen.oauth2sample" exec="oauth2sample" multiple="false" nodisplay="false" taskmanage="true" type="capp">
- <label>oauth2sample</label>
- <icon>oauth2sample.png</icon>
- </ui-application>
- <privileges>
- <privilege>http://tizen.org/privilege/internet</privilege>
- </privileges>
-</manifest>