DocsGPT icon indicating copy to clipboard operation
DocsGPT copied to clipboard

authentik Authentification

Open dartpain opened this issue 2 years ago • 23 comments

Basically authentik to handle authentification.

https://github.com/goauthentik/authentik

dartpain avatar Oct 02 '23 10:10 dartpain

can explain little bit more about issue?

djv03 avatar Oct 02 '23 12:10 djv03

Basically create authentification for the application. Currently there is no auth. On demo we are using clerk.dev, which is quite easy to implement. But I think people will benefit from proper auth.

Basically need to primarily work on the frontend folder I think.

dartpain avatar Oct 02 '23 13:10 dartpain

If this issue is open I can work upon it

aaditya9899 avatar Oct 02 '23 15:10 aaditya9899

Would be great, please do, ill assign it to you for now

dartpain avatar Oct 02 '23 15:10 dartpain

hey @dartpain i saw there is nothing yet from code or UI to sign in or sign up in dev mode in frontend folder ...am i correct? And also which type of auth should i use ..github or google and how can i get their api keys ...i shouldn't be using my personal ones ig

aaditya9899 avatar Oct 07 '23 09:10 aaditya9899

hey @dartpain i saw there is nothing yet from code or UI to sign in or sign up in dev mode in frontend folder ...am i correct? And also which type of auth should i use ..github or google and how can i get their api keys ...i shouldn't be using my personal ones ig

@dartpain @aaditya9899 Dear all, any updates on authentication function development?

jamsnrihk avatar Oct 18 '23 00:10 jamsnrihk

hey @dartpain i saw there is nothing yet from code or UI to sign in or sign up in dev mode in frontend folder ...am i correct? And also which type of auth should i use ..github or google and how can i get their api keys ...i shouldn't be using my personal ones ig

@dartpain @aaditya9899 Dear all, any updates on authentication function development?

Hey @jamsnrihk ,Yeah I was working upon it just stuck on that doubt so couldn't continue...

aaditya9899 avatar Oct 18 '23 04:10 aaditya9899

@aaditya9899 https://github.com/aaditya9899 which API key you need? clerk.com API key?

On Wed, 18 Oct 2023 at 12:47, aaditya9899 @.***> wrote:

hey @dartpain https://github.com/dartpain i saw there is nothing yet from code or UI to sign in or sign up in dev mode in frontend folder ...am i correct? And also which type of auth should i use ..github or google and how can i get their api keys ...i shouldn't be using my personal ones ig

@dartpain https://github.com/dartpain @aaditya9899 https://github.com/aaditya9899 Dear all, any updates on authentication function development?

Yeah I was working upon it just stuck on that doubt so couldn't continue...

— Reply to this email directly, view it on GitHub https://github.com/arc53/DocsGPT/issues/369#issuecomment-1767633246, or unsubscribe https://github.com/notifications/unsubscribe-auth/A76VNQROFK6SPDYFBOEVYE3X75NM3AVCNFSM6AAAAAA5PFYPECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRXGYZTGMRUGY . You are receiving this because you commented.Message ID: @.***>

-- P Help save paper - do you need to print this email?

jamsnrihk avatar Oct 18 '23 06:10 jamsnrihk

@aaditya9899 https://github.com/aaditya9899 which API key you need? clerk.com API key? On Wed, 18 Oct 2023 at 12:47, aaditya9899 @.> wrote: hey @dartpain https://github.com/dartpain i saw there is nothing yet from code or UI to sign in or sign up in dev mode in frontend folder ...am i correct? And also which type of auth should i use ..github or google and how can i get their api keys ...i shouldn't be using my personal ones ig @dartpain https://github.com/dartpain @aaditya9899 https://github.com/aaditya9899 Dear all, any updates on authentication function development? Yeah I was working upon it just stuck on that doubt so couldn't continue... — Reply to this email directly, view it on GitHub <#369 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A76VNQROFK6SPDYFBOEVYE3X75NM3AVCNFSM6AAAAAA5PFYPECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRXGYZTGMRUGY . You are receiving this because you commented.Message ID: @.> -- P Help save paper - do you need to print this email?

In these auth provider services I mean

export const authOptions = {
  // Configure one or more authentication providers
  providers: [
    GithubProvider({
      clientId: process.env.GITHUB_ID,
      clientSecret: process.env.GITHUB_SECRET,
    }),
    // ...add more providers here
  ],
}

aaditya9899 avatar Oct 19 '23 10:10 aaditya9899

CAN we make those auth. API key configurable in .env file? let user input by themselves.

On Thu, 19 Oct 2023 at 18:49, aaditya9899 @.***> wrote:

@aaditya9899 https://github.com/aaditya9899 https://github.com/aaditya9899 which API key you need? clerk.com API key? … <#m_3141642545070216470_> On Wed, 18 Oct 2023 at 12:47, aaditya9899 @.> wrote: hey @dartpain https://github.com/dartpain https://github.com/dartpain https://github.com/dartpain i saw there is nothing yet from code or UI to sign in or sign up in dev mode in frontend folder ...am i correct? And also which type of auth should i use ..github or google and how can i get their api keys ...i shouldn't be using my personal ones ig @dartpain https://github.com/dartpain https://github.com/dartpain https://github.com/dartpain @aaditya9899 https://github.com/aaditya9899 https://github.com/aaditya9899 https://github.com/aaditya9899 Dear all, any updates on authentication function development? Yeah I was working upon it just stuck on that doubt so couldn't continue... — Reply to this email directly, view it on GitHub <#369 (comment) https://github.com/arc53/DocsGPT/issues/369#issuecomment-1767633246>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A76VNQROFK6SPDYFBOEVYE3X75NM3AVCNFSM6AAAAAA5PFYPECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRXGYZTGMRUGY https://github.com/notifications/unsubscribe-auth/A76VNQROFK6SPDYFBOEVYE3X75NM3AVCNFSM6AAAAAA5PFYPECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRXGYZTGMRUGY . You are receiving this because you commented.Message ID: @.> -- P Help save paper - do you need to print this email?

In these auth provider services I mean

export const authOptions = { // Configure one or more authentication providers providers: [ GithubProvider({ clientId: process.env.GITHUB_ID, clientSecret: process.env.GITHUB_SECRET, }), // ...add more providers here ], }

— Reply to this email directly, view it on GitHub https://github.com/arc53/DocsGPT/issues/369#issuecomment-1770556801, or unsubscribe https://github.com/notifications/unsubscribe-auth/A76VNQSW6T3WFVFKFCDSA6DYAEAS5AVCNFSM6AAAAAA5PFYPECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZQGU2TMOBQGE . You are receiving this because you were mentioned.Message ID: @.***>

-- P Help save paper - do you need to print this email?

jamsnrihk avatar Oct 20 '23 02:10 jamsnrihk

CAN we make those auth. API key configurable in .env file? let user input by themselves. On Thu, 19 Oct 2023 at 18:49, aaditya9899 @.> wrote: @aaditya9899 https://github.com/aaditya9899 https://github.com/aaditya9899 which API key you need? clerk.com API key? … <#m_3141642545070216470_> On Wed, 18 Oct 2023 at 12:47, aaditya9899 @.> wrote: hey @dartpain https://github.com/dartpain https://github.com/dartpain https://github.com/dartpain i saw there is nothing yet from code or UI to sign in or sign up in dev mode in frontend folder ...am i correct? And also which type of auth should i use ..github or google and how can i get their api keys ...i shouldn't be using my personal ones ig @dartpain https://github.com/dartpain https://github.com/dartpain https://github.com/dartpain @aaditya9899 https://github.com/aaditya9899 https://github.com/aaditya9899 https://github.com/aaditya9899 Dear all, any updates on authentication function development? Yeah I was working upon it just stuck on that doubt so couldn't continue... — Reply to this email directly, view it on GitHub <#369 (comment) <#369 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A76VNQROFK6SPDYFBOEVYE3X75NM3AVCNFSM6AAAAAA5PFYPECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRXGYZTGMRUGY https://github.com/notifications/unsubscribe-auth/A76VNQROFK6SPDYFBOEVYE3X75NM3AVCNFSM6AAAAAA5PFYPECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRXGYZTGMRUGY . You are receiving this because you commented.Message ID: @.> -- P Help save paper - do you need to print this email? In these auth provider services I mean export const authOptions = { // Configure one or more authentication providers providers: [ GithubProvider({ clientId: process.env.GITHUB_ID, clientSecret: process.env.GITHUB_SECRET, }), // ...add more providers here ], } — Reply to this email directly, view it on GitHub <#369 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A76VNQSW6T3WFVFKFCDSA6DYAEAS5AVCNFSM6AAAAAA5PFYPECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZQGU2TMOBQGE . You are receiving this because you were mentioned.Message ID: @.**> -- P Help save paper - do you need to print this email?

yeah we can do that , let me implement it with GitHub first then will see of the other providers as well , sounds okay?

aaditya9899 avatar Oct 20 '23 14:10 aaditya9899

just having one more doubt , should I implement it in front end or backend.... next js auth give some issues in frontend and in backend i am having a bit difficulty in understanding where should it be implemented as there is no overall index or route file ...

aaditya9899 avatar Oct 20 '23 14:10 aaditya9899

We need to implement in both. Basically need to make sure requests are authorised to backend with jwt token too.

dartpain avatar Oct 23 '23 15:10 dartpain

sure but is the frontend in next js or react?

aaditya9899 avatar Oct 28 '23 07:10 aaditya9899

Currently its react, but I think for next auth we might need to migrate to nextjs

dartpain avatar Oct 29 '23 21:10 dartpain