Commit e6cfdbb0 authored by Rasko Leinonen's avatar Rasko Leinonen

3.2.2. Use new Webin authentication service to support mg-Webin-N authentication.

parent 98b3d5b7
......@@ -182,7 +182,7 @@ public class WebinCliParameters implements MetadataProcessorParameters {
}
public String getFileUploadServiceUserName() {
// Preserve su-Webin-N and mg-Webin-N for FTP and Aspera authentication.
// Use su-Webin-N, mg-Webin-N, or Webin-N for FTP and Aspera authentication.
return (username.startsWith("su-Webin") || username.startsWith("mg-Webin"))
? username
: submissionAccount;
......
......@@ -26,8 +26,8 @@ import uk.ac.ebi.ena.webin.cli.service.utils.HttpHeaderBuilder;
public class
LoginService
{
private final static String TEST_URL = "https://www.ebi.ac.uk/ena/auth";
private final static String PRODUCTION_URL = "https://www.ebi.ac.uk/ena/auth";
private final static String TEST_URL = "https://www.ebi.ac.uk/ena/submit/webin/auth";
private final static String PRODUCTION_URL = "https://www.ebi.ac.uk/ena/submit/webin/auth";
private final String username;
private final String password;
private final boolean test;
......@@ -38,7 +38,7 @@ LoginService
public final String password;
public LoginRequestBody(String username, String password) {
this.authRealms.add("SRA");
this.authRealms.add("ENA");
this.username = username;
this.password = password;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment