@@ -17,75 +17,52 @@
18-- Explicitly specify your Google credentials, or retrieve them
18-- Explicitly specify your Google credentials, or retrieve them
19-- from the underlying OS.
19-- from the underlying OS.
20−module Network.Google.Auth where
20+module Network.Google.Auth
22− -- -- * Credentials
22+ -- * Credentials
23− -- Credentials (..)
23+ Credentials (..)
25− -- -- ** Discovery
25+ -- ** Discovery
26− -- , discover
26+ , discover
27− -- , fromFile
27+ , fromFile
28− -- , fromFilePath
28+ , fromFilePath
29− -- , fromJSONCredentials
29+ , fromJSONCredentials
31− -- -- ** Thread-safe Storage
36− -- -- ** Authorizing Requests
31+ -- ** Authorizing Requests
37− -- , authorize
32+ , authorize
39− -- -- ** Constructing Callback URLs
34+ -- ** Constructing Callback URLs
40− -- , formURL
35+ , formURL
42− -- , accountsURL
37+ -- ** Thread-safe Storage
44− -- -- ** Default Constants
44+ -- ** Default Constants
45− -- -- *** Google Compute Engine
46− -- , checkGCEVar
45+ , checkGCEVar
49− -- , cloudSDKConfigDir
46+ , cloudSDKConfigDir
50− -- , cloudSDKConfigPath
52− -- -- *** Application Default Credentials
53− -- , defaultCredentialsFile
47+ , defaultCredentialsFile
54− -- , defaultCredentialsPath
48+
56− -- -- ** Handling Errors
49+ -- ** Handling Errors
57− -- , AsAuthError (..)
50+ , AsAuthError (..)
58− -- , AuthError (..)
51+ , AuthError (..)
60− -- -- * Credential Types
61− -- , ServiceAccount (..)
62− -- , AuthorizedUser (..)
64− -- -- * OAuth Types
53+ -- * OAuth Types
65− -- , OAuthClient (..)
54+ , OAuthClient (..)
66− -- , OAuthToken (..)
55+ , OAuthToken (..)
67− -- , OAuthCode (..)
56+ , OAuthCode (..)
68− -- , OAuthScope (..)
57+ , OAuthScope (..)
70− -- -- * Re-exported Types
59+ -- * Re-exported Types
71− -- , AccessToken (..)
60+ , AccessToken (..)
72− -- , RefreshToken (..)
61+ , RefreshToken (..)
73− -- , Secret (..)
62+ , Secret (..)
74− -- , ServiceId (..)
63+ , ServiceId (..)
75− -- , ClientId (..)
64+ , ClientId (..)
77− -- -- * Exchange and Refresh Internals
87− -- , refreshAssertion
88− -- ) where
65+ ) where
90import Control.Applicative
67import Control.Applicative
91import Control.Concurrent
68import Control.Concurrent