NetIQ Mobile SDK for iOS  2.0
Access Manager iOS Framework for OAuth & OIDC
OIDServiceConfiguration.h
Go to the documentation of this file.
1 
19 #import <Foundation/Foundation.h>
20 
22 @class OIDServiceDiscovery;
23 
24 NS_ASSUME_NONNULL_BEGIN
25 
29 typedef void (^OIDServiceConfigurationCreated)
30  (OIDServiceConfiguration *_Nullable serviceConfiguration,
31  NSError *_Nullable error);
32 
35 @interface OIDServiceConfiguration : NSObject <NSCopying, NSSecureCoding>
36 
39 @property(nonatomic, readonly) NSURL *authorizationEndpoint;
40 
43 @property(nonatomic, readonly) NSURL *tokenEndpoint;
44 
47 @property(nonatomic, readonly, nullable) NSURL *registrationEndpoint;
48 
51 @property(nonatomic, readonly, nullable) OIDServiceDiscovery *discoveryDocument;
52 
57 - (instancetype)init NS_UNAVAILABLE;
58 
62 - (instancetype)initWithAuthorizationEndpoint:(NSURL *)authorizationEndpoint
63  tokenEndpoint:(NSURL *)tokenEndpoint;
64 
69 - (instancetype)initWithAuthorizationEndpoint:(NSURL *)authorizationEndpoint
70  tokenEndpoint:(NSURL *)tokenEndpoint
71  registrationEndpoint:(nullable NSURL *)registrationEndpoint;
72 
76 - (instancetype)initWithDiscoveryDocument:(OIDServiceDiscovery *)discoveryDocument;
77 
78 @end
79 
80 NS_ASSUME_NONNULL_END
Represents an OpenID Connect 1.0 Discovery Document.
Definition: OIDServiceDiscovery.h:26
Represents the information needed to construct a OIDAuthorizationService.
Definition: OIDServiceConfiguration.h:35
OIDServiceDiscovery * discoveryDocument
The discovery document.
Definition: OIDServiceConfiguration.h:51
NSURL * registrationEndpoint
The dynamic client registration endpoint URI.
Definition: OIDServiceConfiguration.h:47
NSURL * tokenEndpoint
The token exchange and refresh endpoint URI.
Definition: OIDServiceConfiguration.h:43
NSURL * authorizationEndpoint
The authorization endpoint URI.
Definition: OIDServiceConfiguration.h:39
NS_ASSUME_NONNULL_BEGIN typedef void(^ OIDServiceConfigurationCreated)(OIDServiceConfiguration *_Nullable serviceConfiguration, NSError *_Nullable error)
The type of block called when a OIDServiceConfiguration has been created by loading a OIDServiceDisco...