ArcGIS Runtime SDK for iOS: AGSOAuthConfiguration.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSOAuthConfiguration.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24 
25 #import <Foundation/Foundation.h>
26 #import <UIKit/UIInterface.h>
27 
28 
29  //Required for Globals API doc
31 
38 @interface AGSOAuthConfiguration : NSObject
39 
40 #pragma mark -
41 #pragma mark initializers
42 
43 
44 
52 -(instancetype)initWithPortalURL:(nullable NSURL*)portalURL clientID:(NSString*)clientID redirectURL:(nullable NSString*)redirectURL;
53 
61 +(instancetype)OAuthConfigurationWithPortalURL:(nullable NSURL*)portalURL clientID:(NSString*)clientID redirectURL:(nullable NSString*)redirectURL;
62 
63 #pragma mark -
64 #pragma mark properties
65 
69 @property (nullable, nonatomic, strong, readonly) NSURL *portalURL;
70 
74 @property (nonatomic, copy, readonly) NSString *clientID;
75 
79 @property (nullable, nonatomic, copy, readonly) NSString *redirectURL;
80 
87 @property (nonatomic, assign, readwrite) NSInteger refreshTokenExpirationInterval;
88 
99 @property (nonatomic, assign, readwrite) NSInteger refreshTokenExchangeInterval;
100 
105 @property (nonatomic, assign, readwrite) BOOL showSocialLogins ;
106 
112 @property (nonatomic, assign, readwrite) BOOL showCancelButton;
113 
121 @property (nonatomic, assign, readwrite) UIUserInterfaceStyle userInterfaceStyle API_AVAILABLE(ios(12.0));
122 
129 @property (nullable, nonatomic, strong, readwrite) NSLocale *locale;
130 
136 @property (nonatomic, assign, readwrite) BOOL prefersEphemeralWebBrowserSession;
137 
138 @end
139 
140 
OAuth details of an app.
Definition: AGSOAuthConfiguration.h:39
NSLocale * locale
Definition: AGSOAuthConfiguration.h:129
NSString * clientID
Definition: AGSOAuthConfiguration.h:74
UIUserInterfaceStyle userInterfaceStyle API_AVAILABLE(ios(12.0))
BOOL prefersEphemeralWebBrowserSession
Definition: AGSOAuthConfiguration.h:136
NSInteger refreshTokenExpirationInterval
Definition: AGSOAuthConfiguration.h:87
NSURL * portalURL
Definition: AGSOAuthConfiguration.h:69
BOOL showSocialLogins
Definition: AGSOAuthConfiguration.h:105
NSInteger refreshTokenExchangeInterval
Definition: AGSOAuthConfiguration.h:99
NSString * redirectURL
Definition: AGSOAuthConfiguration.h:79
BOOL showCancelButton
Definition: AGSOAuthConfiguration.h:112