Clerk as an OAuth Provider. #9316
mchennupati
started this conversation in
Ideas
Replies: 3 comments 5 replies
-
Hey @mchennupati is the code you provided working? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I have started a PR to implement Clerk as an OAuth provider (#11349). |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks ! I shall take a look when I have a chance, I had switched to using
clerk on its own due to time constraints back then, but this will be much
appreciated by a number of people.
…On Tue, Jul 9, 2024 at 12:24 AM Mattèo Gauthier ***@***.***> wrote:
Great news @rogervila <https://github.com/rogervila> thanks !
—
Reply to this email directly, view it on GitHub
<#9316 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7RXOK73KMATJ7LKZKZF73ZLMGSNAVCNFSM6AAAAABAHLPH56VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TSOJSGEZDQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Mohanakrishna Chennupati
Mobile: 07774328123
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
Non-Goals
Background
The current alternatives is to create your own configuration file in this form:
https://github.com/nextauthjs/next-auth/tree/v4/packages/next-auth/src/providers
The clerk oauth2 can be created using this:
https://api.clerk.com/v1/oauth_applications
And it is in this form:
{
"object":"oauth_application",
"id":"xxxxxx",
"instance_id":"ins_xxxx",
"name":"nextauth-clerk",
"client_id":"xxxxx",
"client_secret":"xxxxxx",
"public":false,
"scopes":"email profile",
"callback_url":"https://yourapp/api/auth",
"authorize_url":"https://clerk.yourapp.com/oauth/authorize",
"token_fetch_url":"https://clerk.yourapp.com/oauth/token",
"user_info_url":"https://clerk.yourapp.com/oauth/userinfo",
"created_at":1701767138671,
"updated_at":1701767138671
}
Proposal
Add a new clerk.ts file to providers here: https://github.com/nextauthjs/next-auth/tree/v4/packages/next-auth/src/providers
Beta Was this translation helpful? Give feedback.
All reactions