@@ -35,7 +35,7 @@ VerifyAssertionRequest::VerifyAssertionRequest(const char* const api_key,
35
35
application_data_->requestUri = url;
36
36
37
37
if (provider_id) {
38
- post_body_ = std::string{ " providerId=" } + provider_id;
38
+ post_body_ = std::string ( " providerId=" ) + provider_id;
39
39
} else {
40
40
LogError (" No provider id given" );
41
41
}
@@ -55,13 +55,13 @@ std::unique_ptr<VerifyAssertionRequest> VerifyAssertionRequest::FromIdToken(
55
55
new VerifyAssertionRequest{api_key, provider_id});
56
56
57
57
if (id_token) {
58
- request->post_body_ += std::string{ " &id_token=" } + id_token;
58
+ request->post_body_ += std::string ( " &id_token=" ) + id_token;
59
59
} else {
60
60
LogError (" No id token given" );
61
61
}
62
62
63
63
if (nonce) {
64
- request->post_body_ += std::string{ " &nonce=" } + nonce;
64
+ request->post_body_ += std::string ( " &nonce=" ) + nonce;
65
65
}
66
66
67
67
request->application_data_ ->postBody = request->post_body_ ;
@@ -83,13 +83,13 @@ std::unique_ptr<VerifyAssertionRequest> VerifyAssertionRequest::FromAccessToken(
83
83
new VerifyAssertionRequest{api_key, provider_id});
84
84
85
85
if (access_token) {
86
- request->post_body_ += std::string{ " &access_token=" } + access_token;
86
+ request->post_body_ += std::string ( " &access_token=" ) + access_token;
87
87
} else {
88
88
LogError (" No access token given" );
89
89
}
90
90
91
91
if (nonce) {
92
- request->post_body_ += std::string{ " &nonce=" } + nonce;
92
+ request->post_body_ += std::string ( " &nonce=" ) + nonce;
93
93
}
94
94
95
95
request->application_data_ ->postBody = request->post_body_ ;
@@ -105,12 +105,12 @@ VerifyAssertionRequest::FromAccessTokenAndOAuthSecret(
105
105
new VerifyAssertionRequest{api_key, provider_id});
106
106
107
107
if (access_token) {
108
- request->post_body_ += std::string{ " &access_token=" } + access_token;
108
+ request->post_body_ += std::string ( " &access_token=" ) + access_token;
109
109
} else {
110
110
LogError (" No access token given" );
111
111
}
112
112
if (oauth_secret) {
113
- request->post_body_ += std::string{ " &oauth_token_secret=" } + oauth_secret;
113
+ request->post_body_ += std::string ( " &oauth_token_secret=" ) + oauth_secret;
114
114
} else {
115
115
LogError (" No OAuth secret given" );
116
116
}
@@ -130,7 +130,7 @@ std::unique_ptr<VerifyAssertionRequest> VerifyAssertionRequest::FromAuthCode(
130
130
new VerifyAssertionRequest{api_key, provider_id});
131
131
132
132
if (auth_code) {
133
- request->post_body_ += std::string{ " &code=" } + auth_code;
133
+ request->post_body_ += std::string ( " &code=" ) + auth_code;
134
134
} else {
135
135
LogError (" No server auth code given" );
136
136
}
0 commit comments