2016-09-08 15:45:51 +02:00
|
|
|
package org.gcube.data.transfer.library.utils;
|
|
|
|
|
2021-05-10 15:18:14 +02:00
|
|
|
import org.gcube.common.authorization.library.provider.AuthorizationProvider;
|
2016-09-08 15:45:51 +02:00
|
|
|
import org.gcube.common.scope.api.ScopeProvider;
|
|
|
|
|
|
|
|
|
|
|
|
public class ScopeUtils {
|
|
|
|
|
|
|
|
public static String getCurrentScope(){
|
2021-05-10 15:18:14 +02:00
|
|
|
return ScopeProvider.instance.get();
|
2016-09-08 15:45:51 +02:00
|
|
|
}
|
|
|
|
|
2016-09-08 17:14:08 +02:00
|
|
|
|
|
|
|
public static String getCurrentCaller(){
|
2021-05-10 15:18:14 +02:00
|
|
|
return AuthorizationProvider.instance.get().getClient().getId();
|
2016-09-08 17:14:08 +02:00
|
|
|
}
|
2016-09-08 15:45:51 +02:00
|
|
|
}
|