Skip to content

Commit 60d07bd

Browse files
ofedorenekohl
authored andcommitted
Refs #35473 - Configure Apache for API extlogin
1 parent fbbfdd2 commit 60d07bd

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

templates/auth_gssapi.conf.erb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<Location /users/extlogin>
2+
<LocationMatch ^(/api(/v2)?)?/users/extlogin/?$>
33
SSLRequireSSL
44
AuthType GSSAPI
55
AuthName "GSSAPI Single Sign On Login"
@@ -11,5 +11,4 @@
1111
ErrorDocument 401 '<html><meta http-equiv="refresh" content="0; URL=/users/login"><body>Kerberos authentication did not pass.</body></html>'
1212
# The following is needed as a workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1020087
1313
ErrorDocument 500 '<html><meta http-equiv="refresh" content="0; URL=/users/login"><body>Kerberos authentication did not pass.</body></html>'
14-
</Location>
15-
14+
</LocationMatch>

templates/lookup_identity.conf.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<LocationMatch ^/users/(ext)?login/?$>
2+
<LocationMatch ^(/api(/v2)?)?/users/(ext)?login/?$>
33
LookupUserAttr email REMOTE_USER_EMAIL
44
LookupUserAttr firstname REMOTE_USER_FIRSTNAME
55
LookupUserAttr lastname REMOTE_USER_LASTNAME
@@ -13,4 +13,3 @@
1313
RequestHeader set REMOTE_USER_LASTNAME %{REMOTE_USER_LASTNAME}e
1414
RequestHeader set REMOTE_USER_GROUPS %{REMOTE_USER_GROUPS}e
1515
</LocationMatch>
16-
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
:authorize_login_delegation: true
2+
:authorize_login_delegation_api: true
23
:authorize_login_delegation_auth_source_user_autocreate: External
3-

0 commit comments

Comments
 (0)