RMS SDK for C++  0.2.1
A client library for using Microsoft RMS from Linux.
OAuth2Response.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 OAUTH2RESPONSE_H
10 #define OAUTH2RESPONSE_H
11 
12 #include "types.h"
13 #include "Entities.h"
14 #include "CallState.h"
15 #include "AuthenticationResult.h"
16 #include "AuthorizationResult.h"
17 
18 namespace rmsauth {
19 
21 {
22  static const String& Tag() {static const String tag="OAuth2Response"; return tag;}
23 
24 public:
25  static AuthenticationResultPtr parseTokenResponse(TokenResponsePtr tokenResponse, CallStatePtr callState);
26  static AuthorizationResultPtr parseAuthorizeResponse(const String& webAuthenticationResult, CallStatePtr callState);
27 
28 private:
29  static IdTokenPtr parseIdToken(const String& idToken);
30 };
31 
32 } // namespace rmsauth {
33 
34 #endif // OAUTH2RESPONSE_H
Definition: OAuth2Response.h:20
Definition: AcquireTokenForClientHandler.h:14