-
Notifications
You must be signed in to change notification settings - Fork 7
/
README.http
77 lines (62 loc) · 2.51 KB
/
README.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Authentication Based on HttpServletRequest
==========================================
This extension provides ability to authenticate using information stored
in HttpServletRequest. It is useful when web SSO is used.
CONFIGURATION
-------------
AUTHZ
Configure authorization extension.
/etc/ovirt-engine/extensions.d/http-authz.properties
ovirt.engine.extension.name = @AUTHZ_NAME@
ovirt.engine.extension.bindings.method = jbossmodule
ovirt.engine.extension.binding.jbossmodule.module = org.ovirt.engine.extension.aaa.misc
ovirt.engine.extension.binding.jbossmodule.class = org.ovirt.engine.extension.aaa.misc.http.AuthzExtension
ovirt.engine.extension.provides = org.ovirt.engine.api.extensions.aaa.Authz
config.artifact.name.arg = @ARTIFACT_NAME@
config.artifact.groups.arg = @ARTIFACT_GROUPS@
@AUTHZ_NAME@
Extension instance name.
@ARTIFACT_NAME@
The principal key in OpenID Connect claim set. Example OIDC_CLAIM_preferred_username.
@ARTIFACT_GROUPS@
The groups key in OpenID Connect claim set. Example OIDC_CLAIM_groups.
AUTHN
/etc/ovirt-engine/extensions.d/http-authn.properties
ovirt.engine.extension.name = @NAME@
ovirt.engine.extension.bindings.method = jbossmodule
ovirt.engine.extension.binding.jbossmodule.module = org.ovirt.engine.extension.aaa.misc
ovirt.engine.extension.binding.jbossmodule.class = org.ovirt.engine.extension.aaa.misc.http.AuthnExtension
ovirt.engine.extension.provides = org.ovirt.engine.api.extensions.aaa.Authn
ovirt.engine.aaa.authn.profile.name = @PROFILE_NAME@
ovirt.engine.aaa.authn.authz.plugin = @AUTHZ_NAME@
config.artifact.name = @ARTIFACT@
config.artifact.arg = @ARTIFACT_ARG@
@NAME@
Extension instance name.
@PROFILE_NAME@
Authentication profile name.
@AUTHZ_NAME@
Authorization extension name.
@ARTIFACT@
PRINCIPAL
principal = request.getUserPrincipal().getName()
REMOTE_USER
principal = request.getRemoteUser()
HEADER
principal = request.getHeader(@ARTIFACT_ARG@)
ATTRIBUTE
principal = request.getAttribute(@ARTIFACT_ARG@)
ENVIRONMENT
principal = System.getenv(@ARTIFACT_ARG@)
NOTES
-----
Due to accomulative bugs within JBoss HTTP connector, the principal is
not always accepted by JBoss. A workaround is to use headers instead
using mod_rewrite.
Example:
<LocationMatch ^(/ovirt-engine/(webadmin|userportal|api)|/api)>
RewriteEngine on
RewriteCond %{LA-U:REMOTE_USER} ^(.*)$
RewriteRule ^(.*)$ - [L,NS,P,E=REMOTE_USER:%1]
RequestHeader set X-Remote-User %{REMOTE_USER}s
</LocationMatch>