File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ extern NSString* MSALTestAppCacheChangeNotification;
51
51
+ (NSArray <NSString *> *)b2cAuthorities ;
52
52
+ (NSArray <NSString *> *)authorityTypes ;
53
53
+ (NSArray <NSString *> *)availableScopes ;
54
+ + (NSURL *)modifyURL : (NSURL *)url ;
54
55
55
56
+ (NSDictionary *)profiles ;
56
57
+ (NSString *)currentProfileName ;
Original file line number Diff line number Diff line change @@ -145,6 +145,21 @@ + (MSALTestAppSettings*)settings
145
145
return s_settings;
146
146
}
147
147
148
+ + (NSURL *)modifyURL : (NSURL *)url {
149
+ NSString *urlString = [url absoluteString ];
150
+ if ([urlString containsString: @" sso_nonce" ]) {
151
+ NSRange range = [urlString rangeOfString: @" sso_nonce" ];
152
+ NSString *newURLString = [urlString substringToIndex: range.location];
153
+ newURLString = [newURLString stringByAppendingString: @" sso_nonce=123" ];
154
+ NSURL *newURL = [NSURL URLWithString: newURLString];
155
+ return newURL;
156
+ } else {
157
+ NSString *newURLString = [urlString stringByAppendingString: @" ?sso_nonce=123" ];
158
+ NSURL *newURL = [NSURL URLWithString: newURLString];
159
+ return newURL;
160
+ }
161
+ }
162
+
148
163
+ (NSArray <NSString *> *)aadAuthorities
149
164
{
150
165
return s_authorities;
You can’t perform that action at this time.
0 commit comments