remoting_oauth_authentication.h 838 B

1234567891011121314151617181920
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef REMOTING_IOS_FACADE_REMOTING_OAUTH_AUTHENTICATION_H_
  5. #define REMOTING_IOS_FACADE_REMOTING_OAUTH_AUTHENTICATION_H_
  6. #import "remoting/ios/facade/remoting_authentication.h"
  7. // The OAuth implementation for RemotingAuthentication. Note that this is only
  8. // used by the open source app variant. The official app uses SSO to sign in.
  9. @interface RemotingOAuthAuthentication : NSObject<RemotingAuthentication>
  10. // Provide an |authorizationCode| to authenticate a user as the first time user
  11. // of the application or OAuth Flow.
  12. - (void)authenticateWithAuthorizationCode:(NSString*)authorizationCode;
  13. @end
  14. #endif // REMOTING_IOS_FACADE_REMOTING_OAUTH_AUTHENTICATION_H_