From bca9ad2a4fcb77a372cde5f28426fa63df455a04 Mon Sep 17 00:00:00 2001 From: Borut Tomazin Date: Wed, 20 Sep 2023 11:56:12 +0200 Subject: [PATCH] +1 --- Sources/LinkedIn/LinkedInAuthenticator+Models.swift | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Sources/LinkedIn/LinkedInAuthenticator+Models.swift b/Sources/LinkedIn/LinkedInAuthenticator+Models.swift index 8e03933..0db46f3 100644 --- a/Sources/LinkedIn/LinkedInAuthenticator+Models.swift +++ b/Sources/LinkedIn/LinkedInAuthenticator+Models.swift @@ -58,7 +58,7 @@ 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_id", value: "linkedin"), +// .init(name: "connection", value: "linkedin"), .init(name: "client_id", value: clientId), .init(name: "redirect_uri", value: redirectUrl.absoluteString), .init(name: "state", value: state), @@ -75,6 +75,16 @@ public extension LinkedInAuthenticator { queryItems.append(.init(name: "code_challenge_method", value: codeChallengeMethod)) } +// https://dev-m7lil6hynw60chrw.us.auth0.com/authorize? +// response_type=code& +// code_challenge={codeChallenge}& +// code_challenge_method=S256& +// client_id={yourClientId}& +// redirect_uri={yourCallbackUrl}& +// scope=SCOPE& +// audience={apiAudience}& +// state={state} + urlComponents.queryItems = queryItems return urlComponents.url