c# - Is there a ClaimTypes property to represent "city"? -


i've been looking @ various system.identitymodel.claims.claimtypes properties (class reference) see if there pre-defined type each of user model attributes. appears there except of city. example, see each of address fields need except city:

  • claimtypes.streetaddress
  • claimtypes.stateorprovince
  • claimtypes.postalcode

i did notice there claimtypes.locality; should used represent city? (it doesn't sound purpose). or there other claimtypes property represent city missing?

actually, supposition right. according claim catalog:

(l in rfc 2256) locality component of subject?s address information. according rfc 2256: “this attribute contains name of locality, such city, county or other geographic region.” e.g. redmond.

rfc 2256 says:

5.8. l

this attribute contains name of locality, such city,
county or other geographic region (localityname).

( 2.5.4.7 name 'l' sup name ) 

more official details microsoft can find in pdf format, available downloading here: identity selector interoperability profile specification , companion guides.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -