Replace manual token paste with Authorization Code flow; store Client ID/secret in the DB from the social accounts UI and surface a copyable callback URL for LinkedIn Auth setup.
24 lines
655 B
Python
24 lines
655 B
Python
from django.urls import path
|
|
|
|
from social import views
|
|
|
|
app_name = "social"
|
|
|
|
urlpatterns = [
|
|
path("", views.post_list, name="post_list"),
|
|
path("accounts/", views.account_list, name="account_list"),
|
|
path(
|
|
"accounts/linkedin/start/",
|
|
views.linkedin_oauth_start,
|
|
name="linkedin_oauth_start",
|
|
),
|
|
path(
|
|
"accounts/linkedin/callback/",
|
|
views.linkedin_oauth_callback,
|
|
name="linkedin_oauth_callback",
|
|
),
|
|
path("compose/", views.composer, name="composer"),
|
|
path("api/generate/", views.api_generate, name="api_generate"),
|
|
path("<uuid:pk>/", views.post_detail, name="post_detail"),
|
|
]
|