• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

realm-name

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the DD what is realm-name used for.I know it is used in <login-config> for HTTP Basic authorization. But what does that actualy mean.

Please any body who can explain me this fully.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But what does that actualy mean.


Nothing special actually. I think it's just used as a kind of description, to tell the user where he is trying to access. Don't pay to much attention to it.
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The technical explanation is that it's the realm name sent back to the browser when it notifies it that the page requires Basic authentication via a 401 response code.

For example the HTTP header for such a response would contain:

WWW-Authenticate: Basic realm="my realm-name"

The browser if it hasn't already asked for a username and password will prompt the user to enter one for "my realm-name".

Any subsequent pages that generate a 401 with the same realm will use the username and password already entered by the user, so will NOT require the user to log in again.

In theory you could give two different applications hosted by the same server, the same realm-name, and therefore only require the user to login once. A realm is a way of grouping pages / urls together with the same authorisation requirements.

In reality the realm-name is just displayed as a descriptive line of the browser's login prompt.

For more information on realms and basic authentication you can read the HTTP specification:

http://www.w3.org/Protocols/HTTP/1.0/spec.html#AA

Rufus.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic