[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 798
  • Last Modified:

Quick question about HTTP:Authorization and auth_type

Hi,

I am using auth_type with a rewrite rule in my httpd.conf file.... a pal told me to use HTTP:Authorization instead

Quick question: whats the difference if any with "HTTP:Authorization" or AUTH_TYPE

eg:
RewriteCond %{HTTP:Authorization} ^basic [NC]
RewriteCond %{LA-U:AUTH_TYPE} ^basic$ [NC]

Thanks!
0
fab_man_007
Asked:
fab_man_007
  • 2
1 Solution
 
NopiusCommented:
AUTH_TYPE is a server variable, set once HTTP connection has been established
%{HTTP:header} is a common way to match any value in http header

so both rules will detect following header line:
Authorization: basic

but matching ^basic is more common then ^basic$, so the first rule will also match "Authorization: basicblabla"

0
 
fab_man_007Author Commented:
Thanks!
0
 
fab_man_007Author Commented:
Oops, Can an administrator kindly change that grade to an A, I made a mistake and accidently put it as a C.

Nopius answered me to the point and the correct grade is an A

Thanks!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now