Now the OIDC event sender is used instead of the UMA one
This commit is contained in:
parent
9ab63a98e0
commit
4ae6933607
|
@ -3,7 +3,7 @@ package org.gcube.portal.event.publisher.lr62;
|
|||
import org.gcube.event.publisher.AbstractEventPublisher;
|
||||
import org.gcube.event.publisher.Event;
|
||||
import org.gcube.event.publisher.EventSender;
|
||||
import org.gcube.event.publisher.HTTPWithUMAAuthEventSender;
|
||||
import org.gcube.event.publisher.HTTPWithOIDCAuthEventSender;
|
||||
import org.gcube.oidc.rest.OpenIdConnectConfiguration;
|
||||
import org.gcube.portal.oidc.lr62.LiferayOpenIdConnectConfiguration;
|
||||
|
||||
|
@ -33,11 +33,9 @@ public abstract class AbstractLR62EventPublisher extends AbstractEventPublisher
|
|||
.getConfiguration();
|
||||
|
||||
EventPublisherConfiguration eventPublisherConfiguration = EventPublisherConfiguration.getConfiguration();
|
||||
// Here the access_token use should be sufficient, but we send the UMA token for future implementation
|
||||
// were more fine grained permissions will be needed
|
||||
return new HTTPWithUMAAuthEventSender(eventPublisherConfiguration.getEventPublisherURL(),
|
||||
return new HTTPWithOIDCAuthEventSender(eventPublisherConfiguration.getEventPublisherURL(),
|
||||
openIdConnectConfiguration.getPortalClientId(), openIdConnectConfiguration.getPortalClientSecret(),
|
||||
openIdConnectConfiguration.getTokenURL(), openIdConnectConfiguration.getPortalClientId());
|
||||
openIdConnectConfiguration.getTokenURL());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue