syslog-ng source
google-auth.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 Attila Szakacs
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 2 as published
6  * by the Free Software Foundation, or (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16  *
17  * As an additional exemption you are allowed to compile & link against the
18  * OpenSSL libraries as published by the OpenSSL project. See the file
19  * COPYING for details.
20  *
21  */
22 
23 #ifndef GOOGLE_AUTH_H
24 #define GOOGLE_AUTH_H
25 
26 #include "cloud-auth.h"
27 
28 #include "compat/cpp-start.h"
29 
30 typedef enum _GoogleAuthenticatorAuthMode
31 {
36 
39 
43  guint64 token_validity_duration);
44 
47  const gchar *metadata_url);
48 
49 #include "compat/cpp-end.h"
50 
51 #endif
struct _CloudAuthenticator CloudAuthenticator
Definition: cloud-auth.h:38
const gchar * name
Definition: debugger.c:265
void google_authenticator_set_user_managed_service_account_name(CloudAuthenticator *s, const gchar *name)
void google_authenticator_set_service_account_token_validity_duration(CloudAuthenticator *s, guint64 token_validity_duration)
void google_authenticator_set_user_managed_service_account_metadata_url(CloudAuthenticator *s, const gchar *metadata_url)
void google_authenticator_set_service_account_audience(CloudAuthenticator *s, const gchar *audience)
CloudAuthenticator * google_authenticator_new(void)
GoogleAuthenticatorAuthMode
Definition: google-auth.h:31
@ GAAM_SERVICE_ACCOUNT
Definition: google-auth.h:33
@ GAAM_UNDEFINED
Definition: google-auth.h:32
@ GAAM_USER_MANAGED_SERVICE_ACCOUNT
Definition: google-auth.h:34
void google_authenticator_set_service_account_key_path(CloudAuthenticator *s, const gchar *key_path)
void google_authenticator_set_auth_mode(CloudAuthenticator *s, GoogleAuthenticatorAuthMode auth_mode)