Skip to content

Commit c97ca04

Browse files
committed
oauth2.go: removed json tag on func
1 parent 4b40efb commit c97ca04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

oauth2.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ type OAuth2Config struct {
8888
IsDemo bool `json:"is_demo,omitempty"`
8989
// determines client used for oauth2 token calls. If
9090
// nil, ctxclient.Default will be used.
91-
HTTPClientFunc ctxclient.Func
91+
HTTPClientFunc ctxclient.Func `json:"-"`
9292
}
9393

9494
// codeGrantConfig creates an oauth2 config for refreshing
@@ -220,10 +220,10 @@ type JWTConfig struct {
220220
Options *jwt.ConfigOptions `json:"expires,omitempty"`
221221
// if not nil, CacheFunc is called after a new token is created passing
222222
// the newly created Token and UserInfo.
223-
CacheFunc func(context.Context, oauth2.Token, UserInfo) `json:"cache_func,omitempty"`
223+
CacheFunc func(context.Context, oauth2.Token, UserInfo) `json:"-"`
224224
// HTTPClientFunc determines client used for oauth2 token calls. If
225225
// nil, ctxclient.DefaultClient will be used.
226-
HTTPClientFunc ctxclient.Func
226+
HTTPClientFunc ctxclient.Func `json:"-"`
227227
}
228228

229229
// UserConsentURL creates a url allowing a user to consent to impersonation

0 commit comments

Comments
 (0)