@@ -0,0 +1,491 @@
+package io.digdag.spi;%0A%0Aimport io.digdag.client.config.Config;%0Aimport org.immutables.value.Value;%0A%0A@Value.Immutable%0Apublic interface AuthenticatedUser%0A%7B%0A    int getSiteId();%0A%0A    boolean isAdmin();%0A%0A    Config getUserInfo();%0A%0A    // this context will not be stored on database instead of userInfo, which is stored as part of wf revision.%0A    Config getUserContext();%0A%0A    static ImmutableAuthenticatedUser.Builder builder()%0A    %7B%0A        return ImmutableAuthenticatedUser.builder();%0A    %7D%0A%7D%0A

add spi.AuthenticatedUser, which is a model of an user already authenticated by spi.Authenticator