MCPcopy Create free account
hub / github.com/audacity/audacity / WriteClientFields

Function WriteClientFields

libraries/lib-cloud-audiocom/OAuthService.cpp:58–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56const std::string_view instanceIdPrefix = "x-audacity-instance-id=";
57
58void WriteClientFields(rapidjson::Document& document)
59{
60 using namespace rapidjson;
61
62 const auto clientID = GetServiceConfig().GetOAuthClientID();
63 const auto clientSecret = GetServiceConfig().GetOAuthClientSecret();
64
65 document.AddMember(
66 "client_id",
67 Value(clientID.data(), clientID.size(), document.GetAllocator()),
68 document.GetAllocator());
69
70 document.AddMember(
71 "client_secret",
72 Value(clientSecret.data(), clientSecret.size(), document.GetAllocator()),
73 document.GetAllocator());
74}
75
76void WriteAccessFields(rapidjson::Document& document, std::string_view grantType, std::string_view scope)
77{

Callers 2

WriteCommonFieldsFunction · 0.85
RegisterMethod · 0.85

Calls 4

GetOAuthClientIDMethod · 0.80
GetOAuthClientSecretMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected