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