soulteary / docker-sso-server

Lightweight 🪶 self-hosted SSO server, resource utilization rate is <1% CPU, MEM <15 M
Creative Commons Zero v1.0 Universal
165 stars 17 forks source link

Potential documentation improvement? #8

Open JokerQyou opened 3 years ago

JokerQyou commented 3 years ago

I found myself hard to understand the documentation. These are the main issues:

soulteary commented 3 years ago

Thanks for your feedback.

It is free software, individuals and small teams don't need to pay anything.

About traefik forward auth integration, I will write an article to introduce it later, the actual use requires some pre-knowledge. Regarding the use case, I will check the availability later.

Based on the fine-grained authorization of different paths and identities, I will consider adding them gradually in the next version. Currently, the distinction is indeed based on whether to access anonymously, just like outline.

If you have any questions or suggestions, please continue to discuss or contact me.

JokerQyou commented 3 years ago

So the "license" here is just an encoded text containing username and email which is used to login, is that correct? In that case, why not just base64 them and eliminate the use of an online generator?

soulteary commented 3 years ago

What you said makes sense, and I think maybe this step can be simplified next.

The reason why users are currently required to generate authorization files by themselves, as I mentioned in the previous post, is that the current functions are only a small part of the software, and do not involve user management and some different authentication schemes.

https://github.com/outline/outline/issues/1881#issuecomment-900792198

The original purpose of writing this software was. Earlier, my friend invited me to write a set of software for sale to enterprises, so I did not plan to open source the source code, just like FusionAuth. And this docker image was originally provided only for my blog readers and readers' WeChat group.

JokerQyou commented 2 years ago

I don't think the online license generator works... Actually it never worked for me. I played with it multiple times, both months ago and few minutes ago. Sometimes the POST request just hangs forever, there is no response. And other times there is always an empty response like this:

The license is authorized to my readers, tester<tester@example.dev>
Please copy and properly save the encrypted information below:

But there is no content below, I inspected with Chrome devtool, that's literally all the content the server returned.

soulteary commented 2 years ago

Sorry, the service was adjusted before, and this api was omitted. Later, I guessed that there was a problem with the communication between ngx-php and ngx-njs.

// Because the previous readers have used it correctly, I ignored/forgot this api.