yanzai / goindex

Goindex 修改版,支持多盘、搜索、分页加载等功能
https://yanzai-goindex.java.workers.dev
333 stars 260 forks source link

[Feature Request] Multi-level authentication #9

Open AnshumanFauzdar opened 4 years ago

AnshumanFauzdar commented 4 years ago

Everything is great and working smoothly But authentication is only working on main page Can you please implement multi-level authentication like this one have - https://github.com/maple3142/GDIndex ?

Thank you!

he-sb commented 4 years ago

Hello, you can simply add a ".password" file in any folder which you want to be encrypted, file's content is password, enjoy~

AnshumanFauzdar commented 4 years ago

Hello, you can simply add a ".password" file in any folder which you want to be encrypted, file's content is password, enjoy~

Thank you! Can you specify line number in code?

he-sb commented 4 years ago

Hello, you can simply add a ".password" file in any folder which you want to be encrypted, file's content is password, enjoy~

Thank you! Can you specify line number in code?

This is not configured in code, you just create the file in specific folder of your own Google Drive.

AnshumanFauzdar commented 4 years ago

Hello, you can simply add a ".password" file in any folder which you want to be encrypted, file's content is password, enjoy~

Thank you! Can you specify line number in code?

This is not configured in code, you just create the file in specific folder of your own Google Drive.

Ohh well then it is not feasible at all, there are multiple folders and I want them all password protected exactly like this https://github.com/maple3142/GDIndex Still thanks tho!

he-sb commented 4 years ago

Okay, I didn't read carefully, what you need is the feature called "HTTP basic auth" which is not included by default in this project. Good luck!

AnshumanFauzdar commented 4 years ago

Okay, I didn't read carefully, what you need is the feature called "HTTP basic auth" which is not included by default in this project. Good luck!

Yes! Currently I am implementing dark mode Will pick up authentication next Thank you

AnshumanFauzdar commented 4 years ago

Hey @yanzai you willing to add authentication like https://github.com/maple3142/GDIndex ? It would be great! Thank you!

yanzai commented 4 years ago

Done in version _4.28

AnshumanFauzdar commented 4 years ago

Thank you chief @yanzai

AnshumanFauzdar commented 4 years ago

Hey @yanzai A little question! How can I learn all this, I am learning web development and familiar with basic DOM techniques but with cloudflare workers how should I proceed? It will be grateful, if you will share resources or techniques Thank you!

yanzai commented 4 years ago

https://developers.cloudflare.com/workers/quickstart#writing-code and https://developers.google.com/drive/api/v3/reference will help you, you also need to know something about HTTP protocol and JavaScript

AnshumanFauzdar commented 4 years ago

Thank you chief!