Exemplo n.º 1
0
        public AuthenticationTokenV1 TryCreateApplicationToken(AuthenticationCredentialsV1 credentials, ApplicationIdentifierV1 applicationIdentifier)
        {
            var tokenPrefix = "app_" + applicationIdentifier.Name;
            var tokenLifetimeMilliseconds = configuration.GetApplicationTokenExpirationMilliseconds();

            return(CreateAuthenticationTokenOrNull(tokenPrefix, credentials, tokenLifetimeMilliseconds));
        }
 public long GetApplicationTokenExpirationMilliseconds()
 {
     return(configuration.GetApplicationTokenExpirationMilliseconds());
 }