Webcom C SDK
webcom-auth.h
Go to the documentation of this file.
1 /*
2  * webcom-sdk-c
3  *
4  * Copyright 2017 Orange
5  * <camille.oudot@orange.com>
6  *
7  * This library is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by the
9  * Free Software Foundation; either version 2.1 of the License, or (at your
10  * option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15  * for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation,
19  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  *
21  */
22 
23 #ifndef INCLUDE_WEBCOM_C_WEBCOM_AUTH_H_
24 #define INCLUDE_WEBCOM_C_WEBCOM_AUTH_H_
25 
26 #include <stddef.h>
27 #include <stdint.h>
28 
40 struct wc_auth_info {
41  char *token;
42  uint64_t expires;
43  char *provider_uid;
44  char *uid;
45  char *error;
46  char *provider;
49 };
50 
67 int wc_auth_with_password(wc_context_t *ctx, const char *email, const char *password);
68 
73 #endif /* INCLUDE_WEBCOM_C_WEBCOM_AUTH_H_ */
struct wc_context wc_context_t
Definition: webcom-base.h:27
uint64_t expires
Definition: webcom-auth.h:42
Definition: webcom-auth.h:40
char * token
Definition: webcom-auth.h:41
char * error
Definition: webcom-auth.h:45
int wc_auth_with_password(wc_context_t *ctx, const char *email, const char *password)
char * provider
Definition: webcom-auth.h:46
char * uid
Definition: webcom-auth.h:44
char * provider_profile
Definition: webcom-auth.h:47
char * provider_uid
Definition: webcom-auth.h:43