@@ -17,75 +17,52 @@
1717--
1818-- Explicitly specify your Google credentials, or retrieve them
1919-- from the underlying OS.
20−module Network.Google.Auth where
21− -- (
22− -- -- * Credentials
23− -- Credentials (..)
24−
25− -- -- ** Discovery
26− -- , discover
27− -- , fromFile
28− -- , fromFilePath
29− -- , fromJSONCredentials
30−
31− -- -- ** Thread-safe Storage
32− -- , Auth (..)
33− -- , Store
34− -- , emptyStore
35−
36− -- -- ** Authorizing Requests
37− -- , authorize
38−
39− -- -- ** Constructing Callback URLs
40− -- , formURL
41− -- , redirectURI
42− -- , accountsURL
43−
44− -- -- ** Default Constants
45− -- -- *** Google Compute Engine
46− -- , checkGCEVar
47−
48− -- -- *** Cloud SDK
49− -- , cloudSDKConfigDir
50− -- , cloudSDKConfigPath
51−
52− -- -- *** Application Default Credentials
53− -- , defaultCredentialsFile
54− -- , defaultCredentialsPath
55−
56− -- -- ** Handling Errors
57− -- , AsAuthError (..)
58− -- , AuthError (..)
59−
60− -- -- * Credential Types
61− -- , ServiceAccount (..)
62− -- , AuthorizedUser (..)
63−
64− -- -- * OAuth Types
65− -- , OAuthClient (..)
66− -- , OAuthToken (..)
67− -- , OAuthCode (..)
68− -- , OAuthScope (..)
69−
70− -- -- * Re-exported Types
71− -- , AccessToken (..)
72− -- , RefreshToken (..)
73− -- , Secret (..)
74− -- , ServiceId (..)
75− -- , ClientId (..)
76−
77− -- -- * Exchange and Refresh Internals
78− -- , getToken
79− -- , validateToken
80−
81− -- , exchange
82− -- , exchangeCode
83−
84− -- , refresh
85− -- , refreshMetadata
86− -- , refreshToken
87− -- , refreshAssertion
88− -- ) where
20+module Network.Google.Auth
21+ (
22+ -- * Credentials
23+ Credentials (..)
24+
25+ -- ** Discovery
26+ , discover
27+ , fromFile
28+ , fromFilePath
29+ , fromJSONCredentials
30+
31+ -- ** Authorizing Requests
32+ , authorize
33+
34+ -- ** Constructing Callback URLs
35+ , formURL
36+
37+ -- ** Thread-safe Storage
38+ , Auth (..)
39+ , Store
40+ , initStore
41+ , exchange
42+ , refresh
43+
44+ -- ** Default Constants
45+ , checkGCEVar
46+ , cloudSDKConfigDir
47+ , defaultCredentialsFile
48+
49+ -- ** Handling Errors
50+ , AsAuthError (..)
51+ , AuthError (..)
52+
53+ -- * OAuth Types
54+ , OAuthClient (..)
55+ , OAuthToken (..)
56+ , OAuthCode (..)
57+ , OAuthScope (..)
58+
59+ -- * Re-exported Types
60+ , AccessToken (..)
61+ , RefreshToken (..)
62+ , Secret (..)
63+ , ServiceId (..)
64+ , ClientId (..)
65+ ) where
8966
9067import Control.Applicative
9168import Control.Concurrent