2020-09-03 21:40:48 +02:00
|
|
|
package eu.dnetlib.uoaauthorizationlibrary.configuration;
|
|
|
|
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
|
|
|
|
@ConfigurationProperties("authorization.security")
|
|
|
|
public class SecurityConfig {
|
|
|
|
|
|
|
|
private String userInfoUrl;
|
|
|
|
|
|
|
|
public String getUserInfoUrl() {
|
|
|
|
return userInfoUrl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setUserInfoUrl(String userInfoUrl) {
|
|
|
|
this.userInfoUrl = userInfoUrl;
|
|
|
|
}
|
|
|
|
|
2021-11-16 14:37:06 +01:00
|
|
|
/** @deprecated */
|
|
|
|
public boolean isDeprecated() {
|
|
|
|
return userInfoUrl.contains("accessToken");
|
2020-09-03 21:40:48 +02:00
|
|
|
}
|
|
|
|
}
|