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

Setting container‘s timezone makes OAuth unusable #3005

Closed
oeiber opened this issue Jun 1, 2022 · 4 comments
Closed

Setting container‘s timezone makes OAuth unusable #3005

oeiber opened this issue Jun 1, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@oeiber
Copy link

oeiber commented Jun 1, 2022

To make it easier analyzing log files, I mounted /etc/timezone to all my containers. But when I do that for my authentic containers this will result OAuth timestamps where delivered to the application with the current time, in my case utc+2, instead of delivering current utc time.

@oeiber oeiber added the bug Something isn't working label Jun 1, 2022
@BobSilent
Copy link
Contributor

I experienced the same issues with oauth and saml.

Simply following the configuration description, which does not tell anything about mounting Timezone or setting an environment, is the success.

I did not experience any disadvantages of not configuring/mounting the timezones.

Authenik does everything right, all is logged in UTC and shown to the user localized.

So either fixing this issue or extending the configuration documentation with a warming would be okay from my perspective.

@BeryJu
Copy link
Member

BeryJu commented Jun 1, 2022

The server assumes that it's local timezone is UTC as configured here https://github.com/goauthentik/authentik/blob/master/authentik/root/settings.py#L321

BobSilent added a commit to BobSilent/authentik that referenced this issue Jun 2, 2022
BeryJu pushed a commit that referenced this issue Jun 2, 2022
@BeryJu BeryJu closed this as completed Jun 2, 2022
@septatrix
Copy link
Contributor

It seems like this could easily be supported by using django's utils.timezone.activate?

@pinerolly
Copy link

pinerolly commented Sep 21, 2023

failed to register layer: unlinkat /usr/local/lib/python3.11/site-packages/pkg_resources/_vendor/pyparsing/diagram: invalid argument

can pull the image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants