public AuthConfiguration(KeyAuthenticationMode mode) { KeyAuthenticationMode = mode; if (mode == KeyAuthenticationMode.TemporaryKey) { TemporaryJwtKey = GeneratedJwtKey.Create(); } }
public AuthOptions(KeyAuthenticationMode mode) { KeyAuthenticationMode = mode; }
public static AuthConfiguration CreateAuthConfiguration(bool noAuth, bool tempApiKey) { KeyAuthenticationMode authMode = noAuth ? KeyAuthenticationMode.NoAuth : tempApiKey ? KeyAuthenticationMode.TemporaryKey : KeyAuthenticationMode.StoredKey; return(new AuthConfiguration(authMode)); }