Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authenticating routes #6890

Open
1 of 2 tasks
haresh6x opened this issue Mar 10, 2022 · 11 comments
Open
1 of 2 tasks

Authenticating routes #6890

haresh6x opened this issue Mar 10, 2022 · 11 comments
Labels
documentation The issue is related to the documentation of Docusaurus status: accepting pr This issue has been accepted, and we are looking for community contributors to implement this

Comments

@haresh6x
Copy link

haresh6x commented Mar 10, 2022

Have you read the Contributing Guidelines on issues?

Description

Suppose I am having authentication in place, how do I protect my navbar routes or markdown files routes?
I can't understand how to approach towards it in docusaurus.

Self-service

  • I'd be willing to address this documentation request myself.
@haresh6x haresh6x added documentation The issue is related to the documentation of Docusaurus status: needs triage This issue has not been triaged by maintainers labels Mar 10, 2022
@haresh6x haresh6x changed the title Authenticate markdown routes Authenticating routes Mar 10, 2022
@slorber
Copy link
Collaborator

slorber commented Mar 10, 2022

I've answered how to protect a docusaurus site here:
#958 (comment)

There is not a single way, it depends on what you want to do exactly

@haresh6x
Copy link
Author

I've answered how to protect a docusaurus site here: #958 (comment)

There is not a single way, it depends on what you want to do exactly

@slorber Thank you so much for pointing it out. I am surprised why it didn't come up in my issues search terms.

@Josh-Cena Josh-Cena removed the status: needs triage This issue has not been triaged by maintainers label Mar 13, 2022
@Josh-Cena
Copy link
Collaborator

I think we can put this under deployment

@Josh-Cena Josh-Cena added the status: accepting pr This issue has been accepted, and we are looking for community contributors to implement this label Mar 13, 2022
@pizzaz93
Copy link

@Josh-Cena would the need here be to document the methods of protecting docusaurus sites per slorber's comment?

@Josh-Cena
Copy link
Collaborator

Yep! It would mostly be copy&pasting his comment, maybe presenting it in a more organized way :)

@pizzaz93
Copy link

Would that be in this repository? Or is there a separate repo for documentation?

I'll try my hand at presentation and adding some more words :).

@Josh-Cena
Copy link
Collaborator

Deployment docs are here: https://github.com/facebook/docusaurus/blob/main/website/docs/deployment.mdx

@ehuisinga
Copy link

ehuisinga commented Apr 21, 2023

Hi! I'm a new contributor and was looking at possibly attempting this issue. I wanted to clarify what needs to be done for this to see if I think I can complete it (or if there's a different issue that would be better suited for a new contributor, I can look at that as well).

@slorber
Copy link
Collaborator

slorber commented Apr 27, 2023

@ehuisinga This issue is about documenting strategies to authenticate a site or section of your site.

I have written possible solutions and their tradeoffs here, but didn't try them in practice:
#958 (comment)

This issue is about doing the R&D and POCs to prove that these things are possible and write down a step-by-step guide somewhere for the rest of the community. It's hard to help: you have to try building those things and report how it goes.

@ehuisinga
Copy link

@slorber I've looked into it more and this seems maybe a little complicated for me to dive into Docusaurus with, so I think I'll pass on it for now. Thank you for the response though!

@massoudmaboudi
Copy link
Contributor

You may check my articles that show how to add an authentication layer to your Docusuaurs website.

https://iammassoud.net/blog/docusaurus-authentication-roadmap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation The issue is related to the documentation of Docusaurus status: accepting pr This issue has been accepted, and we are looking for community contributors to implement this
Projects
None yet
Development

No branches or pull requests

6 participants