Class AppleController

Inheritance

System.Object
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

TypeNameDescription
UserManageruserManager

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

TypeNameDescription
System.StringappleAuthorizationCode

authorizationCode from Apple

System.StringfirstName

The first name is part of the JSON string that Apple sends on the first login

System.StringlastName

The last name is part of the JSON string that Apple sends on the first login

System.Stringemail

The email is part of the JSON string that Apple sends on the first login

System.StringapplicationIdentifier

The applications identifier eg. com.Company.Application

Returns

TypeDescription
System.Threading.Tasks.Task

Exceptions

TypeCondition
LoginException