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

We are able to generate the token but not able to set the required environment variables with data stored in DB. Used AuthJWTProvider dbd technique #70

Open
suvarna-kaanuboyina opened this issue Sep 12, 2022 · 0 comments

Comments

@suvarna-kaanuboyina
Copy link

suvarna-kaanuboyina commented Sep 12, 2022

Code Snippet:
<Location /gettoken>
SetHandler jwt-login-handler
AuthJWTProvider dbd
AuthDBDUserPWQuery "SELECT password, cn as SSL_CLIENT_S_DN_CN, ou as SSL_CLIENT_S_DN_OU, o as SSL_CLIENT_S_DN_O from dbo.USER_CERT_VIEW where userName = %s" --> as user name is not passing along with URL, not sure whether this query will help us to set required ENV variables

Tried to set the username explicitly with the below code. (Note: Sent user name as query param)
<Location /gettoken>
SetHandler jwt-login-handler
AuthJWTProvider dbd
Rewriteengine On
RewriteCond %{QUERY_STRING} ^(?:.&)?username=(.)$
RewriteRule ^ - [env=username:%1]
Header set TokenH %{username}e
AuthDBDUserPWQuery "SELECT password, cn as SSL_CLIENT_S_DN_CN, ou as SSL_CLIENT_S_DN_OU, o as SSL_CLIENT_S_DN_O from dbo.USER_CERT_VIEW where userName = %{username}e"

Getting error with above query. Could you please suggest me on the usage of query in case of AuthJWTProvider dbd as i didn't get any example to refer.
Declaimer: I doesn't have prior knowledge on Apache HttpD server.

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

No branches or pull requests

1 participant