From f455938e85afbf5f0d182ee8b133833d8d5ec6c6 Mon Sep 17 00:00:00 2001 From: Borut Tomazin Date: Wed, 20 Sep 2023 14:28:26 +0200 Subject: [PATCH] +1 --- Sources/LinkedIn/LinkedInAuthenticator+Models.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Sources/LinkedIn/LinkedInAuthenticator+Models.swift b/Sources/LinkedIn/LinkedInAuthenticator+Models.swift index 0db46f3..c9163e3 100644 --- a/Sources/LinkedIn/LinkedInAuthenticator+Models.swift +++ b/Sources/LinkedIn/LinkedInAuthenticator+Models.swift @@ -58,7 +58,6 @@ public extension LinkedInAuthenticator { guard var urlComponents = URLComponents(url: authEndpoint, resolvingAgainstBaseURL: false) else { return nil } var queryItems: [URLQueryItem] = [ .init(name: "response_type", value: "code"), -// .init(name: "connection", value: "linkedin"), .init(name: "client_id", value: clientId), .init(name: "redirect_uri", value: redirectUrl.absoluteString), .init(name: "state", value: state), @@ -85,6 +84,15 @@ public extension LinkedInAuthenticator { // audience={apiAudience}& // state={state} +// https://dev-m7lil6hynw60chrw.us.auth0.com/authorize? +// audience=backend-api-dev& +// response_type=code& +// client_id=TgeJ3wu0t1JfVeUmh1R6UrALh1gaigu2& +// redirect_uri=https%3A%2F%2Fdev-m7lil6hynw60chrw.us.auth0.com%2Flogin%2Fcallback& +// code_challenge=Kl-QSZMdOqv_n_9mnPnA8AVd-rsXSZUsEF3OjEiHJ28& +// code_challenge_method=S256& +// scope=openid%20profile%20email%20offline_access + urlComponents.queryItems = queryItems return urlComponents.url