RMS SDK for C++  0.2.1
A client library for using Microsoft RMS from Linux.
AuthenticationParameters.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_AUTHENTICATIONCALLBACK_H_
10 #define _RMS_LIB_AUTHENTICATIONCALLBACK_H_
11 
12 #include "ModernAPIExport.h"
13 
14 namespace rmscore {
15 namespace modernapi {
19 class DLL_PUBLIC_RMS AuthenticationParameters {
20 public:
24  std::string Authority()
25  {
26  return m_authority;
27  }
28 
32  std::string Resource()
33  {
34  return m_resource;
35  }
36 
40  std::string Scope()
41  {
42  return m_scope;
43  }
44 
48  std::string UserId()
49  {
50  return m_userId;
51  }
52 
60  AuthenticationParameters(const std::string& authority,
61  const std::string& resource,
62  const std::string& scope,
63  const std::string& userId)
64  : m_authority(authority)
65  , m_resource(resource)
66  , m_scope(scope)
67  , m_userId(userId)
68  {}
69 
70 private:
71 
72  std::string m_authority;
73  std::string m_resource;
74  std::string m_scope;
75  std::string m_userId;
76 };
77 } // namespace modernapi
78 } // namespace rmscore
79 
80 #endif // _RMS_LIB_AUTHENTICATIONCALLBACK_H_
std::string Resource()
The resource name. Provided by authentication challenge from RMS service.
Definition: AuthenticationParameters.h:32
Definition: AuthenticationCallbackImpl.h:16
Coordinates for OAuth authentication with Azure AD or AD FS.
Definition: AuthenticationParameters.h:19
std::string UserId()
The current user ID. Provided by caller (app).
Definition: AuthenticationParameters.h:48
std::string Authority()
The authorization service. Provided by authentication challenge from RMS service. ...
Definition: AuthenticationParameters.h:24
AuthenticationParameters(const std::string &authority, const std::string &resource, const std::string &scope, const std::string &userId)
Coordinates for OAuth authentication.
Definition: AuthenticationParameters.h:60
std::string Scope()
The redirect URL. Provided by authentication challenge from RMS service.
Definition: AuthenticationParameters.h:40