This file is indexed.

/usr/include/Wt/Auth/GoogleService is in libwt-dev 3.3.4+dfsg-6ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// This may look like C code, but it's really -*- C++ -*-
/*
 * Copyright (C) 2011 Emweb bvba, Kessel-Lo, Belgium.
 *
 * See the LICENSE file for terms of use.
 */
#ifndef WT_AUTH_GOOGLE_AUTH_H_
#define WT_AUTH_GOOGLE_AUTH_H_

#include <Wt/Auth/OAuthService>

namespace Wt {
  namespace Auth {

/*! \brief %OAuth service for Google as third-party authenticator.
 *
 * The configuration of the service is done using properties, whose
 * values need to match the values configured at Google.
 *
 * - <tt>google-oauth2-redirect-endpoint</tt>: the URL of the local
 *   redirect endpoint, to which the google OAuth service redirects the user
 *   after authentication. See also redirectEndpoint()
 * - <tt>google-oauth2-redirect-endpoint-path</tt>: optionally, the deployment
 *   path that corresponds to the redirect endpoint. See also
 *   redirectEndpointPath()
 * - <tt>google-oauth2-client-id</tt>: The client ID
 * - <tt>google-oauth2-client-secret</tt>: The client secret.
 *
 * For example:
 * \code
 * <properties>
 *   <property name="google-oauth2-redirect-endpoint">
 *     http://localhost:8080/oauth2callback
 *   </property>
 *   <property name="google-oauth2-client-id">
 *     123456789012.apps.googleusercontent.com
 *   </property>
 *   <property name="google-oauth2-client-secret">
 *     abcdefghijk-12312312312
 *   </property>
 * </properties>
 * \endcode
 *
 * Like all <b>service classes</b>, this class holds only
 * configuration state. Thus, once configured, it can be safely shared
 * between multiple sessions since its state (the configuration) is
 * read-only. 
 * \if cpp
 * A "const GoogleService" object is thus thread-safe.
 * \endif
 *
 * \if cpp
 * \sa http://code.google.com/apis/accounts/docs/OAuth2.html
 * \elseif java
 * See also: http://code.google.com/apis/accounts/docs/OAuth2.html
 * \endif
 *
 * \if cpp
 * \note For FastCGI, see also additional configuration in OAuthService
 * \endif
 *
 * \ingroup auth
 */
class WT_API GoogleService : public OAuthService
{
public:
  /*! \brief Constructor.
   */
  GoogleService(const AuthService& baseAuth);

  /*! \brief Checks whether a GoogleAuth service is properly configured.
   *
   * This returns \c true if a value is found for the three
   * configuration properties.
   */
  static bool configured();

  virtual std::string name() const;
  virtual WString description() const;
  virtual int popupWidth() const;
  virtual int popupHeight() const;

  virtual std::string authenticationScope() const;
  virtual std::string redirectEndpoint() const;
  virtual std::string redirectEndpointPath() const;
  virtual std::string authorizationEndpoint() const;
  virtual std::string tokenEndpoint() const;
  virtual std::string clientId() const;
  virtual std::string clientSecret() const;

  virtual OAuthProcess *createProcess(const std::string& scope) const;
};

  }
}

#endif // WT_AUTH_PASSWORD_AUTH