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

docs: update and enhance oidc documentation #2142

Merged
merged 31 commits into from
Jul 14, 2021
Merged

docs: update and enhance oidc documentation #2142

merged 31 commits into from
Jul 14, 2021

Conversation

georglauterbach
Copy link
Contributor

Since there is no PR template - strangely enough - I will use the one we use over at docker-mailserver/docker-mailserver. Feel free to copy it :).

Description

This PR enhances, extends and updates the OIDC section in the documentation. Changes include

  • updated descriptions of the individual options when configuring OIDC options
  • added some examples and encouraged readers to participate (making it easier for everyone to find information about their application)
  • updated options to explain how to create them
  • added small hints for K8s
  • added a "Currently Tested Applications" heading to show what is currently worked on (shall be expanded in the future)

Context: #189

Type of change

  • Improvement (non-breaking change that does improve existing functionality)
  • This change is a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (README.md or the documentation under docs/)
  • If necessary I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@authelia
Copy link

authelia bot commented Jul 2, 2021

Thanks for choosing to contribute @georglauterbach. We lint all PR's with golangci-lint and eslint, I may add a review to your PR with some suggestions.

You are free to apply the changes if you're comfortable, alternatively you are welcome to ask a team member for advice.

Artifacts

These changes once approved by a team member will be published for testing on Buildkite, DockerHub and GitHub Container Registry.

Docker Container

  • docker pull authelia/authelia:PR2142
  • docker pull ghcr.io/authelia/authelia:PR2142

@georglauterbach
Copy link
Contributor Author

georglauterbach commented Jul 2, 2021

Not sure whether there is a documentation preview set up for this project. If there is, please provide me with a link so I can have a look at a deployed version myself. Please have an maintainer label this accordingly and put it into the OIDC project :)

PS: Sorry for the force-push (I know, it's discouraged). Had to do it because of the GPG signature (changed recently and wasn't updated properly).

@georglauterbach georglauterbach changed the title update and enhance OIDC documentation [OIDC/docs] Update and enhance OIDC documentation Jul 2, 2021
@james-d-elliott
Copy link
Member

PS: Sorry for the force-push (I know, it's discouraged). Had to do it because of the GPG signature (changed recently and wasn't updated properly).

No worries! We mainly prefer it to keep a reasonable history of the progression of a PR if necessary.

Not sure whether there is a documentation preview set up for this project. If there is, please provide me with a link so I can have a look at a deployed version myself. Please have an maintainer label this accordingly and put it into the OIDC project :)

There currently isn't, but we have a JTD testing area which I can push these changes to and you can see how it looks. We're probably going to have to discuss some of these changes internally since they differ from a thorough configuration doc restyle recently. I'm about to sleep so will take a closer look in about 9 hours.

@georglauterbach
Copy link
Contributor Author

There currently isn't, but we have a JTD testing area which I can push these changes to and you can see how it looks.

SGTM 👍🏼

We're probably going to have to discuss some of these changes internally since they differ from a thorough configuration doc restyle recently. I'm about to sleep so will take a closer look in about 9 hours.

Alright, I already anticipated that there is some sort of style guideline. I may have overlooked them. But of course, these changes are open for discussion. Just reach back to me :)

@james-d-elliott
Copy link
Member

james-d-elliott commented Jul 2, 2021

https://authelia.github.io/jtd-test/?random=1231278978744

Here's a preview of that page with some easy to notice differences. Grafana has also been tested and works as expected.

@georglauterbach
Copy link
Contributor Author

georglauterbach commented Jul 2, 2021

https://authelia.github.io/jtd-test/?random=1231278978744

Here's a preview of that page with some easy to notice differences. Grafana has also been tested and works as expected.

Nice! I noticed some small mistakes that I will correct soon. Won‘t have time on the weekend though. Reach back to me if there are style adjustments or things you’d like to see changed. I will most likely be able to correct them on Monday.

@nightah nightah changed the title [OIDC/docs] Update and enhance OIDC documentation docs: update and enhance oidc documentation Jul 3, 2021
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
georglauterbach and others added 2 commits July 5, 2021 11:02
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
@codecov
Copy link

codecov bot commented Jul 5, 2021

Codecov Report

Merging #2142 (4a70cde) into master (907680c) will increase coverage by 0.09%.
The diff coverage is n/a.

❗ Current head 4a70cde differs from pull request most recent head fffca37. Consider uploading reports for the commit fffca37 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2142      +/-   ##
==========================================
+ Coverage   69.63%   69.73%   +0.09%     
==========================================
  Files         176      176              
  Lines        5148     5148              
  Branches      200      200              
==========================================
+ Hits         3585     3590       +5     
+ Misses       1287     1282       -5     
  Partials      276      276              
Flag Coverage Δ
backend 71.47% <ø> (ø)
frontend 62.24% <ø> (+0.51%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
web/src/hooks/IntermittentClass.ts 82.35% <0.00%> (+29.41%) ⬆️

@georglauterbach
Copy link
Contributor Author

georglauterbach commented Jul 6, 2021

@james-d-elliott @clems4ever Ready for review with suggestions incorporated. I know that the command / pipe for creating the secrets (especially in K8s) seems overkill, but this solution does not rely on openssl but only on standard Linux programs / files. I can add the openssl command back in if you would like to see that too (again), but I prefer urandom | tr | base64 over openssl rand -base64 | base64.

@georglauterbach
Copy link
Contributor Author

georglauterbach commented Jul 11, 2021

Resolved the conflicts, this is ready again to be merged :)

@james-d-elliott
Copy link
Member

Resolved the conflicts, this is ready again to be merged :)

Thanks! I'll take a look today. We've all been very busy sorry.

Copy link
Member

@james-d-elliott james-d-elliott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM, few suggestions.

docs/community/oidc-integrations.md Outdated Show resolved Hide resolved
docs/community/oidc-integrations.md Show resolved Hide resolved
docs/community/oidc-integrations.md Outdated Show resolved Hide resolved
docs/community/oidc-integrations.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
Copy link
Member

@nightah nightah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a small typo in your latest update.

docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/secrets.md Outdated Show resolved Hide resolved
georglauterbach and others added 5 commits July 12, 2021 11:14
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
@georglauterbach
Copy link
Contributor Author

Thanks for the type hint @nightah. @james-d-elliott I incorporated your suggestions :)

Copy link
Member

@clems4ever clems4ever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the changes you've made so far!
Only few tiny remaining things to fix.

docs/community/oidc-integrations.md Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/identity-providers/oidc.md Outdated Show resolved Hide resolved
docs/configuration/secrets.md Outdated Show resolved Hide resolved
docs/faq.md Outdated Show resolved Hide resolved
georglauterbach and others added 11 commits July 13, 2021 11:05
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Copy link
Member

@clems4ever clems4ever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@james-d-elliott james-d-elliott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! just need to merge master into it so we can merge this. Typically we recommend people give us access when they create a PR (so we can easily merge), though it's not required. Cancel that, you did give us access.

default: 30d
{: .label .label-config .label-blue }
required: no
{: .label .label-config .label-green }
</div>

The maximum lifetime of a refresh token. This should typically be slightly more the other token lifespans. This is
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why the comment about how long the token should be was removed. However I can just add it back later in another paragraph. Other than that LGTM!

@james-d-elliott james-d-elliott merged commit 9d7cfb8 into authelia:master Jul 14, 2021
@georglauterbach georglauterbach deleted the update-oidc-docs branch July 14, 2021 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants