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

Improve howto for setting up remote user #2708

Merged
merged 3 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doc/howto/mod_auth_openidc_feide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,17 @@ NAV configuration
varname = REMOTE_USER
logout-url = /oidc/?logout=
workaround = feide-oidc
autocreate = off

"oidc" in the ``logout-url`` points to the same place as the
``<Location /oidc>``-block in the apache configuration and the redirect URI in
the Feide dashboard.

By toggling autocreate to "on", users are automatically created on first login
via OIDC, This is probably not what you want, which is why the default is
hmpf marked this conversation as resolved.
Show resolved Hide resolved
"off". With it "off" it is necessary to pre-create the users in order to allow
login.

Gotchas
=======

Expand Down
11 changes: 11 additions & 0 deletions doc/reference/web_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ Since the password is controlled from a system externally to NAV, the user does
not have access to change the password from inside NAV. If an account is set to
invalid in NAV, the user will not be logged in, even if the header is set.

Creating users on first login
-----------------------------

Earlier versions of this functionality created users on first login. That is no
longer the case. To enable the previous behaviour, set ``autocreate = on`` in
the ``[remote-user]`` section in the config-file.

With the default, which is ``off``, it is necessary to pre-create users for
them to be able to log in. This can be done from the command line with
``navuser``, or via the web interface.

Workarounds for "strange" `REMOTE_USER` values
----------------------------------------------

Expand Down
Loading