Compartilhar via


MSAuthenticationCallback accessTokenWithAuthenticationParameters method

Implement this callback method to authenticate you application.

We recommend that you use the Azure AD Authentication Library (ADAL). However, other authentication libraries that support OAuth 2.0 can be used as well.

For more information, see the Prerequisites section in the iOS and OS X Apps topic under Get started.

Signature

- (void)accessTokenWithAuthenticationParameters:(MSAuthenticationParameters *)authenticationParameters completionBlock:(void(^)(NSString *accessToken, NSError *error))completionBlock;

Parameters

Name Datatype Notes
authenticationParameters
MSAuthenticationParameters *
completionBlock
void(^)(NSString *accessToken, NSError *error)

Defined in

MSAuthenticationCallback.h

Supported Platforms

Minimum supported OS versions
iOS 7.0 and OS X 10.8

Remarks

This method must be implemented by you. The Rights Management SDK 4.2 will use this method via its APIs to authenticate your application.

We recommend that you use the Azure AD Authentication Library and, other authentication libraries can be used.