| 56 | const std::string_view instanceIdPrefix = "x-audacity-instance-id="; |
| 57 | |
| 58 | void 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 | |
| 76 | void WriteAccessFields(rapidjson::Document& document, std::string_view grantType, std::string_view scope) |
| 77 | { |
no test coverage detected