Policy Management Example

Important: when creating the Policy Management mappings, ensure that both sub and name attributes map to Username (Token)

Configure a new policy similar to below:

Manage Policy

 

Policy ID

OAuthPlayground

Policy Name

OAuthPlayground

Access Token Manager

JSON Web Tokens

ID Token Lifetime

5

Include Session Identifier in ID Token

false

Include User Info in ID Token

false

Include State Hash in ID Token

false

Attribute Contract

 

Attribute

sub

Attribute

name

Attribute

address.country

Attribute

address.formatted

Attribute

address.locality

Attribute

address.postal_code

Attribute

address.region

Attribute

address.street_address

Attribute

birthdate

Attribute

email

Attribute

email_verified

Attribute

family_name

Attribute

gender

Attribute

given_name

Attribute

locale

Attribute

middle_name

Attribute

name

Attribute

nickname

Attribute

phone_number

Attribute

phone_number_verified

Attribute

picture

Attribute

preferred_username

Attribute

profile

Attribute

updated_at

Attribute

website

Attribute

zoneinfo

Attribute Scopes

 

Attribute Sources & User Lookup

 

Data Sources

(None)

Contract Fulfillment

 

sub

Username (Token)

name

Username (Token)

address.locality

Smallville (Text)

birthdate

1977-12-31 (Text)

gender

female (Text)

preferred_username

mgsample (Text)

Locale3

en_US (Text)

address.country

USA (Text)

updated_at

2011-01-03T23:58:42+0000 (Text)

address.postal_code

11223 (Text)

address.region

ME (Text)

nickname

Name (Text)

email

auser@example.com (Text)

website

https://www.pingidentity.com/ (Text)

email_verified

true (Text)

profile

https://www.pingidentity.com/products/pingfederate/ (Text)

phone_number_verified

true (Text)

given_name

Mary (Text)

middle_name

Good (Text)

picture

https://www.pingidentity.com/images/ping-logo.png (Text)

phone_number

(555) 555-5555 (Text)

address.formatted

123 Main Street, Smallville, ME USA 11223 (Text)

family_name

Sample (Text)

address.street_address

123 Main Street (Text)

Issuance Criteria

 

Criterion

(None)