From d54879d9041cae9ce15b2805612ce10b7ec3bb14 Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Tue, 10 Mar 2020 16:53:16 -0300 Subject: [PATCH 1/2] Update Facebook subject_token_type It was changed on the backend. --- Auth0/Auth0Authentication.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Auth0/Auth0Authentication.swift b/Auth0/Auth0Authentication.swift index b912535d..ef3a4a65 100644 --- a/Auth0/Auth0Authentication.swift +++ b/Auth0/Auth0Authentication.swift @@ -319,7 +319,7 @@ struct Auth0Authentication: Authentication { parameters["user_profile"] = json } return self.tokenExchange(subjectToken: sessionAccessToken, - subjectTokenType: "http://auth0.com/oauth/token-type/facebook-session-access-token", + subjectTokenType: "http://auth0.com/oauth/token-type/facebook-info-session-access-token", scope: scope, audience: audience, parameters: parameters) From d7270c552449a91932af60ac3ac78ab1acaa9a69 Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Tue, 10 Mar 2020 16:58:23 -0300 Subject: [PATCH 2/2] Update test case --- Auth0Tests/AuthenticationSpec.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Auth0Tests/AuthenticationSpec.swift b/Auth0Tests/AuthenticationSpec.swift index c9c34491..f91af8b5 100644 --- a/Auth0Tests/AuthenticationSpec.swift +++ b/Auth0Tests/AuthenticationSpec.swift @@ -366,7 +366,7 @@ class AuthenticationSpec: QuickSpec { stub(condition: isToken(Domain) && hasAllOf([ "grant_type": TokenExchangeGrantType, "subject_token": sessionAccessToken, - "subject_token_type": "http://auth0.com/oauth/token-type/facebook-session-access-token", + "subject_token_type": "http://auth0.com/oauth/token-type/facebook-info-session-access-token", "scope": "openid profile offline_access", "user_profile": "{\"name\":\"John Smith\"}", "client_id": ClientId