SUPPORT-9509: Fix
This commit is contained in:
parent
56a682bdeb
commit
fc747df12a
1 changed files with 3 additions and 9 deletions
|
|
@ -74,12 +74,9 @@ public class EsiaConfig {
|
|||
@Value("${file.sign.verify.url}")
|
||||
private String fileSignVerifyUrl;
|
||||
|
||||
@Value("${esia.system.scope}")
|
||||
@Value("${esia.system.scope: pow_reg, pow_reg_search}")
|
||||
private String esiaSystemScope;
|
||||
|
||||
@Value("${esia.system.token.url}")
|
||||
private String esiaSystemTokenUrl;
|
||||
|
||||
public String getEsiaOrgScopes() {
|
||||
String[] scopeItems = esiaOrgScopes.split(",");
|
||||
return String.join(" ", Arrays.stream(scopeItems).map(item -> orgScopeUrl + item.trim()).toArray(String[]::new));
|
||||
|
|
@ -161,10 +158,7 @@ public class EsiaConfig {
|
|||
}
|
||||
|
||||
public String getEsiaSystemScope() {
|
||||
return esiaSystemScope;
|
||||
}
|
||||
|
||||
public String getEsiaSystemTokenUrl() {
|
||||
return esiaSystemTokenUrl;
|
||||
String[] scopeItems = esiaSystemScope.split(",");
|
||||
return String.join(" ", Arrays.stream(scopeItems).map(String::trim).toArray(String[]::new));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue