Skip to content

Requesting custom claims

Olga Dalton edited this page Sep 22, 2018 · 3 revisions

OpenID Connect defines the claims Authorization Request parameter to enable requesting individual Claims and specifying parameters that apply to the requested Claims. See more details in OpenID Connect Core 1.0.

MSAL provides an interactive API to pass the claims Authorization Request parameter.

This might be necessary in various situations. For example, claims challenges could be issued by the resource when the access token is used for accessing the resource.

In such a case, an interactive acquire token call is needed to pass the claims challenge to server. MSAL provides the following API which accepts claims challenge for class MSALPublicClientApplication:

- (void)acquireTokenForScopes:(NSArray<NSString *> *)scopes
         extraScopesToConsent:(NSArray<NSString *> *)extraScopesToConsent
                      account:(MSALAccount *)account
                   uiBehavior:(MSALUIBehavior)uiBehavior
         extraQueryParameters:(NSDictionary <NSString *, NSString *> *)extraQueryParameters
                       claims:(NSString *)claims
                    authority:(NSString *)authority
                correlationId:(NSUUID *)correlationId
              completionBlock:(MSALCompletionBlock)completionBlock;

Getting started with MSAL SDK

Configure, Build, Test, Deploy

Advanced Topics

Getting Help, Common Issues, and FAQ

Migrating

News

Clone this wiki locally