Skip to content

Commit 0a69419

Browse files
committed
Remove @available legacy from MSALNativeAuthPublicClientApplication
1 parent 3387a15 commit 0a69419

File tree

1 file changed

+0
-71
lines changed

1 file changed

+0
-71
lines changed

MSAL/src/native_auth/public/MSALNativeAuthPublicClientApplication.swift

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -184,33 +184,6 @@ public final class MSALNativeAuthPublicClientApplication: MSALPublicClientApplic
184184
}
185185
}
186186

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-
214187
/// Sign in a user using parameters.
215188
/// - Parameters:
216189
/// - parameters: Parameters used for the Sign In flow.
@@ -252,31 +225,6 @@ public final class MSALNativeAuthPublicClientApplication: MSALPublicClientApplic
252225
}
253226
}
254227

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-
280228
/// Reset the password using parameters
281229
/// - Parameters:
282230
/// - parameters: Parameters used for the Reset Password flow.
@@ -306,25 +254,6 @@ public final class MSALNativeAuthPublicClientApplication: MSALPublicClientApplic
306254
}
307255
}
308256

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-
328257
/// Retrieve the current signed in account from the cache.
329258
/// - Parameter correlationId: Optional. UUID to correlate this request with the server for debugging.
330259
/// - Returns: An object representing the account information if present in the local cache.

0 commit comments

Comments
 (0)