aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/GRPCCall+OAuth2.h
diff options
context:
space:
mode:
authorGravatar Muxi Yan <muxi@users.noreply.github.com>2017-08-04 15:30:57 -0700
committerGravatar GitHub <noreply@github.com>2017-08-04 15:30:57 -0700
commitf6f12de88a783c5c1f41b7549c41a11a771e43fb (patch)
tree5cca791fb75ce39191b5e1534caed3719f20b87d /src/objective-c/GRPCClient/GRPCCall+OAuth2.h
parent1fb3b669f957c02b32ce0b967f391493b81808f5 (diff)
Revert "Add OAuth2 protocol in GRPCClient"
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall+OAuth2.h')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall+OAuth2.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+OAuth2.h b/src/objective-c/GRPCClient/GRPCCall+OAuth2.h
index adb1042aa0..65465e9523 100644
--- a/src/objective-c/GRPCClient/GRPCCall+OAuth2.h
+++ b/src/objective-c/GRPCClient/GRPCCall+OAuth2.h
@@ -18,13 +18,6 @@
#import "GRPCCall.h"
-/**
- * The protocol of an OAuth2 token object from which GRPCCall can acquire a token.
- */
-@protocol GRPCAuthorizationProtocol
-- (void)getTokenWithHandler:(void (^)(NSString *token))hander;
-@end
-
/** Helpers for setting and reading headers compatible with OAuth2. */
@interface GRPCCall (OAuth2)
@@ -40,12 +33,4 @@
/** Returns the value (if any) of the "www-authenticate" response header (the challenge header). */
@property(atomic, readonly) NSString *oauth2ChallengeHeader;
-/**
- * The authorization token object to be used when starting the call. If the value is set to nil, no
- * oauth authentication will be used.
- *
- * If tokenProvider exists, it takes precedence over the token set by oauth2AccessToken.
- */
-@property(atomic, strong) id<GRPCAuthorizationProtocol> tokenProvider;
-
@end