Skip to content

Commit 1777131

Browse files
committed
Remove @available under AccountResult, SignInAfterResetPassword, SignInAfterSignUp
1 parent 0a69419 commit 1777131

File tree

3 files changed

+0
-82
lines changed

3 files changed

+0
-82
lines changed

MSAL/src/native_auth/public/MSALNativeAuthUserAccountResult.swift

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -96,59 +96,4 @@ import Foundation
9696
correlationId: parameters.correlationId,
9797
delegate: delegate)
9898
}
99-
100-
/// Retrieves the access token for the default OIDC(openid, offline_access, profile) scopes from the cache.
101-
/// - Parameters:
102-
/// - forceRefresh: Optional. Ignore any existing access token in the cache and force MSAL to get a new access token from the service.
103-
/// - correlationId: Optional. UUID to correlate this request with the server for debugging.
104-
/// - delegate: Delegate that receives callbacks for the Get Access Token flow.
105-
@available(*, deprecated, message: "This method is now deprecated. Use the method 'getAccessToken(parameters:)' instead.")
106-
@objc public func getAccessToken(forceRefresh: Bool = false,
107-
correlationId: UUID? = nil,
108-
delegate: CredentialsDelegate) {
109-
MSALLogger.log(
110-
level: .info,
111-
context: nil,
112-
format: "Retrieving access token without scopes.")
113-
114-
getAccessTokenInternal(forceRefresh: forceRefresh,
115-
scopes: [],
116-
claimsRequest: nil,
117-
correlationId: correlationId,
118-
delegate: delegate)
119-
}
120-
121-
/// Retrieves the access token for the currently signed in account from the cache such that
122-
/// the scope of retrieved access token is a superset of requested scopes. If the access token
123-
/// has expired, it will be refreshed using the refresh token that's stored in the cache. If no
124-
/// access token matching the requested scopes is found in cache then a new access token is fetched.
125-
/// - Parameters:
126-
/// - scopes: Permissions you want included in the access token received in the result. Not all scopes are guaranteed to be included in the access token returned.
127-
/// - forceRefresh: Optional. Ignore any existing access token in the cache and force MSAL to get a new access token from the service.
128-
/// - correlationId: Optional. UUID to correlate this request with the server for debugging.
129-
/// - delegate: Delegate that receives callbacks for the Get Access Token flow.
130-
@available(*, deprecated, message: "This method is now deprecated. Use the method 'getAccessToken(parameters:)' instead.")
131-
public func getAccessToken(scopes: [String],
132-
forceRefresh: Bool = false,
133-
correlationId: UUID? = nil,
134-
delegate: CredentialsDelegate) {
135-
136-
guard inputValidator.isInputValid(scopes) else {
137-
Task { await delegate.onAccessTokenRetrieveError(error: RetrieveAccessTokenError(type: .invalidScope,
138-
correlationId: correlationId ?? UUID())) }
139-
return
140-
}
141-
142-
MSALLogger.log(
143-
level: .info,
144-
context: nil,
145-
format: "Retrieving access token with scopes started."
146-
)
147-
148-
getAccessTokenInternal(forceRefresh: forceRefresh,
149-
scopes: scopes,
150-
claimsRequest: nil,
151-
correlationId: correlationId,
152-
delegate: delegate)
153-
}
15499
}

MSAL/src/native_auth/public/state_machine/state/SignInAfterResetPasswordState.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,4 @@ import Foundation
5656
}
5757
}
5858
}
59-
60-
/// Sign in the user that just reset the password.
61-
/// - Parameters:
62-
/// - scopes: Optional. Permissions you want included in the access token received after sign in flow has completed.
63-
/// - delegate: Delegate that receives callbacks for the Sign In flow.
64-
@available(*, deprecated, message: "This method is now deprecated. Use the method 'signIn(parameters:)' instead.")
65-
public func signIn(scopes: [String]? = nil, delegate: SignInAfterResetPasswordDelegate) {
66-
let parameters = MSALNativeAuthSignInAfterResetPasswordParameters()
67-
parameters.scopes = scopes
68-
signIn(
69-
parameters: parameters,
70-
delegate: delegate
71-
)
72-
}
7359
}

MSAL/src/native_auth/public/state_machine/state/SignInAfterSignUpState.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,4 @@ import Foundation
5151
}
5252
}
5353
}
54-
55-
/// Sign in the user that signed up.
56-
/// - Parameters:
57-
/// - scopes: Optional. Permissions you want included in the access token received after sign in flow has completed.
58-
/// - delegate: Delegate that receives callbacks for the Sign In flow.
59-
@available(*, deprecated, message: "This method is now deprecated. Use the method 'signIn(parameters:)' instead.")
60-
public func signIn(scopes: [String]? = nil, delegate: SignInAfterSignUpDelegate) {
61-
let parameters = MSALNativeAuthSignInAfterSignUpParameters()
62-
parameters.scopes = scopes
63-
signIn(
64-
parameters: parameters,
65-
delegate: delegate)
66-
}
6754
}

0 commit comments

Comments
 (0)