RMS SDK for C++  0.2.1
A client library for using Microsoft RMS from Linux.
IAuthenticationCallbackImpl.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_IAUTHENTICATIONCALLBACKIMPL_H_
10 #define _RMS_LIB_IAUTHENTICATIONCALLBACKIMPL_H_
11 
12 #include <string>
13 #include "ModernAPIExport.h"
14 
15 namespace rmscore {
16 namespace modernapi {
21 {
25  std::string authority;
26 
30  std::string resource;
31 
35  std::string scope;
36 };
37 
42 public:
46  virtual bool NeedsChallenge() const = 0;
47 
53  virtual std::string GetAccessToken(const AuthenticationChallenge& challenge) = 0;
54 };
55 } // namespace modernapi
56 } // namespace rmscore
57 #endif // _RMS_LIB_IAUTHENTICATIONCALLBACKIMPL_H_
Authentication callback implementation.
Definition: IAuthenticationCallbackImpl.h:41
std::string scope
Scope of the authentication request.
Definition: IAuthenticationCallbackImpl.h:35
std::string authority
Authority with which the request is made.
Definition: IAuthenticationCallbackImpl.h:25
Definition: AuthenticationCallbackImpl.h:16
virtual std::string GetAccessToken(const AuthenticationChallenge &challenge)=0
Method for acquiring the access token.
Structure for authentication information.
Definition: IAuthenticationCallbackImpl.h:20
std::string resource
Resource being requested.
Definition: IAuthenticationCallbackImpl.h:30
virtual bool NeedsChallenge() const =0
Gets the state of the need for auth challenge.