syslog-ng source
oauth2-auth.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2025 Databricks
3  * Copyright (c) 2025 David Tosovic <david.tosovic@databricks.com>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 
24 #ifndef OAUTH2_AUTH_H
25 #define OAUTH2_AUTH_H
26 
27 #include "cloud-auth.h"
28 
29 #include "compat/cpp-start.h"
30 
31 typedef enum
32 {
37 
39 void oauth2_authenticator_set_client_id(CloudAuthenticator *s, const gchar *client_id);
40 void oauth2_authenticator_set_client_secret(CloudAuthenticator *s, const gchar *client_secret);
41 void oauth2_authenticator_set_token_url(CloudAuthenticator *s, const gchar *token_url);
43 void oauth2_authenticator_set_resource(CloudAuthenticator *s, const gchar *resource);
44 void oauth2_authenticator_set_authorization_details(CloudAuthenticator *s, const gchar *authorization_details);
45 void oauth2_authenticator_set_refresh_offset(CloudAuthenticator *s, guint64 refresh_offset_seconds);
47 
48 #include "compat/cpp-end.h"
49 
50 #endif
51 
struct _CloudAuthenticator CloudAuthenticator
Definition: cloud-auth.h:38
void oauth2_authenticator_set_client_secret(CloudAuthenticator *s, const gchar *client_secret)
void oauth2_authenticator_set_resource(CloudAuthenticator *s, const gchar *resource)
void oauth2_authenticator_set_authorization_details(CloudAuthenticator *s, const gchar *authorization_details)
void oauth2_authenticator_set_scope(CloudAuthenticator *s, const gchar *scope)
void oauth2_authenticator_set_auth_method(CloudAuthenticator *s, OAuth2AuthMethod auth_method)
void oauth2_authenticator_set_token_url(CloudAuthenticator *s, const gchar *token_url)
OAuth2AuthMethod
Definition: oauth2-auth.h:32
@ OAUTH2_AUTH_METHOD_BASIC
Definition: oauth2-auth.h:33
@ OAUTH2_AUTH_METHOD_CUSTOM
Definition: oauth2-auth.h:35
@ OAUTH2_AUTH_METHOD_POST_BODY
Definition: oauth2-auth.h:34
void oauth2_authenticator_set_refresh_offset(CloudAuthenticator *s, guint64 refresh_offset_seconds)
CloudAuthenticator * oauth2_authenticator_new(void)
void oauth2_authenticator_set_client_id(CloudAuthenticator *s, const gchar *client_id)