16212: Assembles v2 token for authentication.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Tue, 7 Apr 2020 21:52:10 +0000 (18:52 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 29 Apr 2020 20:24:36 +0000 (17:24 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/views-components/login-form/login-form.tsx

index 160a1bb89f3c7828ec83f65730c0b110dbcea654..b64ae0b03f99364f9a78ac5e746f64929875450b 100644 (file)
@@ -85,8 +85,8 @@ export const LoginForm = withStyles(styles)(
             handleSubmit(username, password)
             .then((response) => {
                 setSubmitting(false);
-                const apiToken = response.data.api_token;
-                if (apiToken) {
+                if (response.data.uuid && response.data.api_token) {
+                    const apiToken = `v2/${response.data.uuid}/${response.data.api_token}`;
                     dispatch<any>(saveApiToken(apiToken)).finally(
                         () => dispatch(navigateToRootProject));
                 } else {