Class AuthProviders
- Namespace
- VpnHood.AppLib.Abstractions.Accounts
- Assembly
- VpnHood.AppLib.Abstractions.dll
Well-known sign-in method ids. A sign-in method is a free-form STRING self-declared by the app's IAuthenticationExternalProvider — deliberately not an enum, so a third-party app built on these packages can introduce its own identity provider ("github", "samsung", …) without a change to this library. The id is a contract, lowercase by convention, consumed verbatim everywhere:
- the portal sends it as the wire discriminator and the backend keys its token verifiers on it (unknown ids are the backend's to reject — fail-closed);
- the UI derives its sign-in label key as SIGN_IN_WITH_<UPPERCASE-ID> and falls back to a generic "Sign in" when no such key exists. Changing an id is therefore a breaking change on the wire and in the UI label lookup.
public static class AuthProviders
- Inheritance
-
AuthProviders
- Inherited Members
Fields
Apple
The ID of the sign-in with Apple.
public const string Apple = "apple"
Field Value
The ID of the sign-in with Google.
public const string Google = "google"
Field Value
Microsoft
The ID of the sign-in with Microsoft.
public const string Microsoft = "microsoft"
Field Value
Password
The account website's own email + password, checked by the backend against its client login (no external IdP involved). Sign-in only: the backend never creates an account for this method. May require a second step — see SignInResult.State.
public const string Password = "password"