NeuraAuthenticationRequest Class Reference

Inherits from NeuraBaseAuthenticationRequest : NeuraRequest : NSObject
Declared in NeuraAuthenticationRequest.h

Overview

An object representing an authentication request. After creating an instance of this object you pass it to the authenticateWithRequest method of NeuraSDK.shared

  phone

The phone number of the user. Set this if you are using AuthenticationTypePhoneInjection or if you are intereseted to use phone injection in the legacy AuthenticationTypeAuthenticationScreen.

@property (nonatomic, readwrite, nullable) NSString *phone

Discussion

The phone number of the user. Set this if you are using AuthenticationTypePhoneInjection or if you are intereseted to use phone injection in the legacy AuthenticationTypeAuthenticationScreen.

Declared In

NeuraAuthenticationRequest.h

  controller

The authentication flow may present authentication user interface, so you need to provide the presenting view controller.

@property (nonatomic, readwrite, nullable) UIViewController *controller

Discussion

The authentication flow may present authentication user interface, so you need to provide the presenting view controller.

Declared In

NeuraAuthenticationRequest.h

  permissions

(optional) A list of permissions used on authentication. If not set, the SDK will get a list of all permissions you enabled on the devsite and will use that list on authentication.

@property (nonatomic, readwrite, nullable) NSArray<NPermission*> *permissions

Discussion

(optional) A list of permissions used on authentication. If not set, the SDK will get a list of all permissions you enabled on the devsite and will use that list on authentication.

Declared In

NeuraAuthenticationRequest.h

  legacyUserInfo

Returns userInfo used in configuration of authentication method in the legacy API. This is read only. Use the other properties of NeuraAuthenticationRequest to configure the authentication request.

@property (nonatomic, readonly, nullable) NSDictionary *legacyUserInfo

Discussion

Returns userInfo used in configuration of authentication method in the legacy API. This is read only. Use the other properties of NeuraAuthenticationRequest to configure the authentication request.

Declared In

NeuraAuthenticationRequest.h

– initWithController:

Initialize authentication request with a presenting controller.

- (nonnull NeuraAuthenticationRequest *)initWithController:(nonnull UIViewController *)controller

Parameters

controller

The view controller that will present authentication related UI.

Return Value

NeuraAuthenticationRequest instance initialized.

Discussion

Initialize authentication request with a presenting controller.

Declared In

NeuraAuthenticationRequest.h

– initWithPermissions:controller:

Initialize authentication request with a presenting controller.

- (nonnull NeuraAuthenticationRequest *)initWithPermissions:(nonnull NSArray<NPermission*> *)permissions controller:(nonnull UIViewController *)controller

Parameters

permissions

An array of NPermission objects.

controller

The view controller that will present authentication related UI.

Return Value

NeuraAuthenticationRequest instance initialized.

Discussion

Initialize authentication request with a presenting controller.

Declared In

NeuraAuthenticationRequest.h