@@ -184,33 +184,6 @@ public final class MSALNativeAuthPublicClientApplication: MSALPublicClientApplic
184
184
}
185
185
}
186
186
187
- /// Sign up a user with a given username and password.
188
- /// - Parameters:
189
- /// - username: Username for the new account.
190
- /// - password: Optional. Password to be used for the new account.
191
- /// - attributes: Optional. User attributes to be used during account creation.
192
- /// - correlationId: Optional. UUID to correlate this request with the server for debugging.
193
- /// - delegate: Delegate that receives callbacks for the Sign Up flow.
194
- @available ( * , deprecated, message: " This method is now deprecated. Use the method 'signUp(parameters:)' instead. " )
195
- public func signUp(
196
- username: String ,
197
- password: String ? = nil ,
198
- attributes: [ String : Any ] ? = nil ,
199
- correlationId: UUID ? = nil ,
200
- delegate: SignUpStartDelegate
201
- ) {
202
- Task {
203
- let parameters = MSALNativeAuthSignUpParameters ( username: username)
204
- parameters. password = password
205
- parameters. attributes = attributes
206
- parameters. correlationId = correlationId
207
- signUp (
208
- parameters: parameters,
209
- delegate: delegate
210
- )
211
- }
212
- }
213
-
214
187
/// Sign in a user using parameters.
215
188
/// - Parameters:
216
189
/// - parameters: Parameters used for the Sign In flow.
@@ -252,31 +225,6 @@ public final class MSALNativeAuthPublicClientApplication: MSALPublicClientApplic
252
225
}
253
226
}
254
227
255
- /// Sign in a user with a given username and password.
256
- /// - Parameters:
257
- /// - username: Username for the account
258
- /// - password: Optional. Password for the account.
259
- /// - scopes: Optional. Permissions you want included in the access token received after sign in flow has completed.
260
- /// - correlationId: Optional. UUID to correlate this request with the server for debugging.
261
- /// - delegate: Delegate that receives callbacks for the Sign In flow.
262
- @available ( * , deprecated, message: " This method is now deprecated. Use the method 'signIn(parameters:)' instead. " )
263
- public func signIn(
264
- username: String ,
265
- password: String ? = nil ,
266
- scopes: [ String ] ? = nil ,
267
- correlationId: UUID ? = nil ,
268
- delegate: SignInStartDelegate
269
- ) {
270
- let parameters = MSALNativeAuthSignInParameters ( username: username)
271
- parameters. password = password
272
- parameters. scopes = scopes
273
- parameters. correlationId = correlationId
274
- signIn (
275
- parameters: parameters,
276
- delegate: delegate
277
- )
278
- }
279
-
280
228
/// Reset the password using parameters
281
229
/// - Parameters:
282
230
/// - parameters: Parameters used for the Reset Password flow.
@@ -306,25 +254,6 @@ public final class MSALNativeAuthPublicClientApplication: MSALPublicClientApplic
306
254
}
307
255
}
308
256
309
- /// Reset the password for a given username.
310
- /// - Parameters:
311
- /// - username: Username for the account.
312
- /// - correlationId: Optional. UUID to correlate this request with the server for debugging.
313
- /// - delegate: Delegate that receives callbacks for the Reset Password flow.
314
- @available ( * , deprecated, message: " This method is now deprecated. Use the method 'resetPassword(parameters:)' instead. " )
315
- public func resetPassword(
316
- username: String ,
317
- correlationId: UUID ? = nil ,
318
- delegate: ResetPasswordStartDelegate
319
- ) {
320
- let parameters = MSALNativeAuthResetPasswordParameters ( username: username)
321
- parameters. correlationId = correlationId
322
- resetPassword (
323
- parameters: parameters,
324
- delegate: delegate
325
- )
326
- }
327
-
328
257
/// Retrieve the current signed in account from the cache.
329
258
/// - Parameter correlationId: Optional. UUID to correlate this request with the server for debugging.
330
259
/// - Returns: An object representing the account information if present in the local cache.
0 commit comments