Class AppleController
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: STREAMSIX.Auth.Apple
Assembly: cs.temp.dll.dll
Syntax
public class AppleController
Constructors
AppleController(UserManager)
Declaration
public AppleController(UserManager userManager)
Parameters
Type | Name | Description |
---|---|---|
UserManager | userManager |
Methods
LoginWithAppleAsync(String, String, String, String, String)
Login by using an apple login token
Backend grab the email from the IDP token, and if an account with that email exists, then it'll link to that account and log you in.
Otherwise, it'll automatically create a new account, link to that account, and log user in.
Will trigger STREAMSIX.Auth.UserManager.OnLoginStatusChanged after login completes
Declaration
public async Task LoginWithAppleAsync(string appleAuthorizationCode, string firstName, string lastName, string email, string applicationIdentifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | appleAuthorizationCode | authorizationCode from Apple |
System.String | firstName | The first name is part of the JSON string that Apple sends on the first login |
System.String | lastName | The last name is part of the JSON string that Apple sends on the first login |
System.String | The email is part of the JSON string that Apple sends on the first login | |
System.String | applicationIdentifier | The applications identifier eg. com.Company.Application |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Exceptions
Type | Condition |
---|---|
LoginException |