Skip to content

Commit

Permalink
+1
Browse files Browse the repository at this point in the history
  • Loading branch information
borut-t committed Sep 20, 2023
1 parent cc54c00 commit f455938
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Sources/LinkedIn/LinkedInAuthenticator+Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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
Expand Down

0 comments on commit f455938

Please sign in to comment.