Skip to content

website/docs: Add documentation for Glitchtip#8182

Merged
tanberry merged 2 commits intogoauthentik:mainfrom
Daniel15:glitchtip-oidc
Feb 26, 2024
Merged

website/docs: Add documentation for Glitchtip#8182
tanberry merged 2 commits intogoauthentik:mainfrom
Daniel15:glitchtip-oidc

Conversation

@Daniel15
Copy link
Contributor

Details

Adds documentation for how to configure Glitchtip.


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)
  • The translation files have been updated (make i18n-extract)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

@Daniel15 Daniel15 requested a review from a team as a code owner January 16, 2024 03:29
@netlify
Copy link

netlify bot commented Jan 16, 2024

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 3753002
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/65d98173e87eaa0008607ced
😎 Deploy Preview https://deploy-preview-8182--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Jan 16, 2024

Deploy Preview for authentik ready!

Name Link
🔨 Latest commit cf4195d
🔍 Latest deploy log https://app.netlify.com/sites/authentik/deploys/65a5f82575284c0008d02958
😎 Deploy Preview https://deploy-preview-8182--authentik.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@rissson rissson left a comment

Choose a reason for hiding this comment

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

Hi, thank you for your contribution!

@rissson rissson requested a review from tanberry January 16, 2024 06:08
@codecov
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.25%. Comparing base (eeb9716) to head (3753002).
Report is 362 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8182      +/-   ##
==========================================
+ Coverage   91.66%   92.25%   +0.59%     
==========================================
  Files         608      632      +24     
  Lines       30262    31297    +1035     
==========================================
+ Hits        27739    28873    +1134     
+ Misses       2523     2424      -99     
Flag Coverage Δ
e2e 49.39% <ø> (+2.30%) ⬆️
integration 26.10% <ø> (-0.30%) ⬇️
unit 89.69% <ø> (+0.23%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@tanberry tanberry left a comment

Choose a reason for hiding this comment

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

Thanks so much @Daniel15 for this contribution! Glitchtip sounds like a cool tool.

- `glitchtip.company` is the FQDN of the Glitchtip install.
- `authentik.company` is the FQDN of the authentik install.

## authentik Configuration
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## authentik Configuration
## authentik configuration

Copy link
Contributor Author

@Daniel15 Daniel15 Feb 23, 2024

Choose a reason for hiding this comment

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

@tanberry I copied this (uppercase C for configuration) from one of the other ones: https://github.com/search?q=repo%3Agoauthentik%2Fauthentik+%23%23+%22authentik+Configuration%22&type=code

In general it seems like there's inconsistencies in the headings and layouts of these service integration pages. Reading a few pages, you can tell they were written by different people, without a style guide (not a bad thing, just a feature of a project that's grown organically over time). Maybe they should all use a standard template?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, I was thinking we needed a template (the inconsistencies between the integrations are pretty wild) and then someone pointed out that we already DO have a template for integrations, haha. It is just rather hard to find: https://github.com/goauthentik/authentik/blob/main/website/integrations/_template/service.md

I'll find places to add a link to the tempalte, and in general try to get the word out that people contributing Integrations docs should use the template, and not copy form another (possibly incorrect) integration page. Thank you for making me dig into this more. :-)

We also do have a very very baby Style Guide for Docs... Needs a lot of work though... I'll get to it eventually.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tanberry I saw that template but didn't it because it looked pretty different to most of the other service pages I looked at 😅


Create an application, using the provider you've created above. Note the slug of the application you've created.

## Glitchtip Configuration
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## Glitchtip Configuration
## Glitchtip configuration


Configuration of OpenID Connect providers in Glitchtip is done using Django Admin.

Create a superuser:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Create a superuser:
1. Create a superuser:

Copy link
Contributor

Choose a reason for hiding this comment

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

Do think we need to be more specific about where one does this? Is in the UI of the Django Admin? If Yes, you could say:

  1. In the Django Admin UI, create a superuser.

sudo docker exec -it glitchtip-web-1 ./manage.py createsuperuser
```

Go to https://glitchtip.company/admin/socialaccount/socialapp/ and log in with the newly-created superuser.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Go to https://glitchtip.company/admin/socialaccount/socialapp/ and log in with the newly-created superuser.
2. Go to https://glitchtip.company/admin/socialaccount/socialapp/ and log in with the newly-created superuser.


Go to https://glitchtip.company/admin/socialaccount/socialapp/ and log in with the newly-created superuser.

Click "Add Social Application"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Click "Add Social Application"
3. Click **Add Social Application** and enter the following details:


Click "Add Social Application"

Enter the following details:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Enter the following details:

- Secret key: &lt;Client Secret from Authentik>
- Key: leave blank
- Settings: `{"server_url": "https://auth.d.sb/application/o/<Slug of the application from above>/"}`
The URL should match the "OpenID Configuration Issuer" URL for the Authentik provider.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
The URL should match the "OpenID Configuration Issuer" URL for the Authentik provider.
The URL should match the **OpenID Configuration Issuer** URL for the authentik provider.

- Provider: `OpenID Connect`
- Provider ID: `authentik` (should match the Redirect URI configured above)
- Provider Name: Whatever you want to appear on GlitchTip's log in button
- Client ID: &lt;Client ID from Authentik>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Client ID: &lt;Client ID from Authentik>
- Client ID: &lt;Client ID from authentik>

- Provider ID: `authentik` (should match the Redirect URI configured above)
- Provider Name: Whatever you want to appear on GlitchTip's log in button
- Client ID: &lt;Client ID from Authentik>
- Secret key: &lt;Client Secret from Authentik>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Secret key: &lt;Client Secret from Authentik>
- Secret key: &lt;Client Secret from authentik>

- Settings: `{"server_url": "https://auth.d.sb/application/o/<Slug of the application from above>/"}`
The URL should match the "OpenID Configuration Issuer" URL for the Authentik provider.

This will add a "Log in with Authentik" button to the GlitchTip log in page. To add an Authentik account to an existing GlitchTip account, log in using the username/password, click _Profile_, then click _Add Account_ in the _Social Auth Accounts_ section.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
This will add a "Log in with Authentik" button to the GlitchTip log in page. To add an Authentik account to an existing GlitchTip account, log in using the username/password, click _Profile_, then click _Add Account_ in the _Social Auth Accounts_ section.
This will add a **Log in with authentik** button to the GlitchTip login page. To add an authentik account to an existing GlitchTip account, log in using the username/password, click _Profile_, then click _Add Account_ in the _Social Auth Accounts_ section.

Copy link
Contributor

@tanberry tanberry left a comment

Choose a reason for hiding this comment

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

Hi @Daniel15 a couple of small edits.

@Daniel15
Copy link
Contributor Author

Daniel15 commented Feb 23, 2024

Thanks - I'll make these changes when I have some time. Sorry I didn't see your first comment - GitHub didn't send me an email about it for some reason.

- Client ID: &lt;Client ID from Authentik>
- Secret key: &lt;Client Secret from Authentik>
- Key: leave blank
- Settings: `{"server_url": "https://auth.d.sb/application/o/<Slug of the application from above>/"}`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops

@netlify
Copy link

netlify bot commented Feb 24, 2024

Deploy Preview for authentik ready!

Name Link
🔨 Latest commit 3753002
🔍 Latest deploy log https://app.netlify.com/sites/authentik/deploys/65d981737dd45d0008c0192e
😎 Deploy Preview https://deploy-preview-8182--authentik.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@tanberry tanberry left a comment

Choose a reason for hiding this comment

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

Thank you so much @Daniel15 !!

@tanberry tanberry merged commit 2e451f4 into goauthentik:main Feb 26, 2024
kensternberg-authentik added a commit that referenced this pull request Feb 27, 2024
* main: (75 commits)
  Add missing commas, correction of spelling errors (#8680)
  website/docs: Add documentation for Glitchtip (#8182)
  website: add solve gitea group does not take effect (#8413)
  enterprise: fix read_only activating when no license is installed (#8697)
  core: fix blueprint export (#8695)
  web: bump the sentry group in /web with 1 update (#8687)
  web: bump yaml from 2.3.4 to 2.4.0 in /web (#8689)
  web: bump the eslint group in /web with 1 update (#8688)
  core: bump pytest from 8.0.1 to 8.0.2 (#8693)
  website: bump @types/react from 18.2.57 to 18.2.58 in /website (#8690)
  web: bump the eslint group in /tests/wdio with 1 update (#8691)
  core: bump sentry-sdk from 1.40.4 to 1.40.5 (#8692)
  core: bump coverage from 7.4.1 to 7.4.3 (#8694)
  providers/oauth2: fix inconsistent `sub` value when setting via mapping (#8677)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh_CN (#8678)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh-Hans (#8679)
  core, web: update translations (#8672)
  root: fix config loading after refactor during ruff migration (#8674)
  root: early spring clean for linting (#8498)
  website/integrations: multiple integration edits (#7923)
  ...
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.

3 participants