LeviLamina
Loading...
Searching...
No Matches
AuthHelper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/IAsyncResult.h"
7#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
8#include "mc/network/services/CachedAsyncSource.h"
9#include "mc/network/services/auth/AuthTokenRetrievalType.h"
10#include "mc/options/DiscoveryEnvironment.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace Bedrock::Services { class AzureGetTokenHttpCall; }
15namespace Bedrock::Services { struct AzureGetTokenHttpResponse; }
16namespace Bedrock::Threading { struct CachedAsyncRetry; }
17// clang-format on
18
19namespace Bedrock::Services {
20
22public:
23 // member variables
24 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 AuthHelper& operator=(AuthHelper const&);
36 AuthHelper(AuthHelper const&);
37 AuthHelper();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 // vIndex: 0
43 virtual ~AuthHelper() /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCNAPI AuthHelper(::std::string applicationId, ::std::string applicationTenantId, int maxAuthRetryAttempts);
50
51 MCNAPI ::std::shared_ptr<
54 int retryCount,
56 ::std::string const& serviceName
57 );
58
59 MCNAPI ::nonstd::expected<::std::string, ::Bedrock::Threading::CachedAsyncRetry>
61
62 MCNAPI void clear(::std::string const& serviceName);
63
64 MCNAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::std::string>> getAuthToken(
65 ::DiscoveryEnvironment environment,
66 ::std::string const& serviceName,
67 ::Bedrock::Services::AuthTokenRetrievalType authTokenRetrievalType
68 );
69 // NOLINTEND
70
71public:
72 // constructor thunks
73 // NOLINTBEGIN
74 MCNAPI void* $ctor(::std::string applicationId, ::std::string applicationTenantId, int maxAuthRetryAttempts);
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80 MCNAPI void $dtor();
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCNAPI static void** $vftable();
87 // NOLINTEND
88};
89
90} // namespace Bedrock::Services
Definition EnableNonOwnerReferences.h:7
Definition AuthHelper.h:21
MCAPI ::std::shared_ptr< ::Bedrock::Threading::IAsyncResult<::nonstd::expected<::std::string, ::Bedrock::Threading::CachedAsyncRetry > > > _getAuthToken(int retryCount, ::Bedrock::Services::AzureGetTokenHttpCall azureTokenCall, ::std::string const &serviceName)
MCAPI void clear(::std::string const &serviceName)
static MCAPI void ** $vftable()
MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::std::string > > getAuthToken(::DiscoveryEnvironment environment, ::std::string const &serviceName, ::Bedrock::Services::AuthTokenRetrievalType authTokenRetrievalType)
MCAPI ::nonstd::expected<::std::string, ::Bedrock::Threading::CachedAsyncRetry > _handleResponse(int retryCount, ::Bedrock::Services::AzureGetTokenHttpResponse responseInfo)
MCAPI AuthHelper(::std::string applicationId, ::std::string applicationTenantId, int maxAuthRetryAttempts)
MCAPI void * $ctor(::std::string applicationId, ::std::string applicationTenantId, int maxAuthRetryAttempts)
Definition AzureGetTokenHttpCall.h:19
Definition IAsyncResult.h:10
Definition AzureGetTokenHttpResponse.h:7
Definition Alias.h:14