RMS SDK for C++  0.2.1
A client library for using Microsoft RMS from Linux.
IAuthenticationCallback.h
1 /*
2  * ======================================================================
3  * Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
4  * Licensed under the MIT License.
5  * See LICENSE.md in the project root for license information.
6  * ======================================================================
7 */
8 
9 #ifndef _RMS_LIB_IAUTHENTICATIONCALLBACK_H_
10 #define _RMS_LIB_IAUTHENTICATIONCALLBACK_H_
11 
12 #include <memory>
13 #include <string>
14 #include "AuthenticationParameters.h"
15 #include "ModernAPIExport.h"
16 
17 namespace rmscore {
18 namespace modernapi {
26 public:
27 
33  virtual std::string GetToken(
34  std::shared_ptr<AuthenticationParameters>& authenticationParameters) = 0;
35 };
36 } // namespace modernapi
37 } // namespace rmscore
38 
39 #endif // _RMS_LIB_IAUTHENTICATIONCALLBACK_H_
Definition: AuthenticationCallbackImpl.h:16
virtual std::string GetToken(std::shared_ptr< AuthenticationParameters > &authenticationParameters)=0
Override to return an access token clients can attach to outbound API calls.
Implement this interface to provide an approach for getting an OAuth access token.
Definition: IAuthenticationCallback.h:25