This repository was archived by the owner on Jan 9, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ ### 1.0.8 (2016-08-04)
5
+
6
+ - Fix [ Newer authenticated bootstrapper response format not handled correctly] ( https://github.com/gtritchie/WOPIAuth/issues/9 )
7
+
4
8
### 1.0.7 (2016-07-27)
5
9
6
10
- Fix [ Token request does not include redirect_uri as per oauth2 spec] ( https://github.com/gtritchie/WOPIAuth/issues/8 )
Original file line number Diff line number Diff line change 21
21
<key >CFBundleSignature </key >
22
22
<string >???? </string >
23
23
<key >CFBundleVersion </key >
24
- <string >7 </string >
24
+ <string >8 </string >
25
25
<key >LSApplicationCategoryType </key >
26
26
<string ></string >
27
27
<key >LSMinimumSystemVersion </key >
Original file line number Diff line number Diff line change @@ -59,7 +59,12 @@ class ProfileResult {
59
59
Parse JSON response from profile endpoint
60
60
*/
61
61
func populateFromResponseData( data: NSData ) throws {
62
- let topLevelDict = try NSJSONSerialization . JSONObjectWithData ( data, options: [ ] ) as! NSDictionary
62
+ var topLevelDict = try NSJSONSerialization . JSONObjectWithData ( data, options: [ ] ) as! NSDictionary
63
+
64
+ if topLevelDict [ " Bootstrap " ] as? NSDictionary != nil {
65
+ topLevelDict = topLevelDict [ " Bootstrap " ] as! NSDictionary
66
+ }
67
+
63
68
guard let id = topLevelDict [ " UserId " ] as? String else {
64
69
throw ProfileResult . errorWithMessage ( " Unable to extract userId " )
65
70
}
You can’t perform that action at this time.
0 commit comments