mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Add an XXX about only_credential_secret_for_test
This commit is contained in:
@@ -156,6 +156,10 @@ OAuth._renderOauthResults = function(res, query, credentialSecret) {
|
||||
// `only_credential_secret_for_test` parameter, which just returns the
|
||||
// credential secret without any surrounding HTML. (The test needs to
|
||||
// be able to easily grab the secret and use it to log in.)
|
||||
//
|
||||
// XXX only_credential_secret_for_test could be useful for other
|
||||
// things beside tests, like command-line clients. We should give it a
|
||||
// real name and serve the credential secret in JSON.
|
||||
if (query.only_credential_secret_for_test) {
|
||||
res.writeHead(200, {'Content-Type': 'text/html'});
|
||||
res.end(credentialSecret, 'utf-8');
|
||||
|
||||
Reference in New Issue
Block a user