Manage access to quote
The Consumer Sales Portal uses JWT to manage accesses to quotes:
- Whenever a consumer starts a quote, a JWT is generated and associated with the quote and
the consumer portal session. The portal calls the
POST /clients/{clientId}/sessions
endpoint to create a session and a JWT for that session is returned. When the new quote is created in InsuranceNow, a decoded identifier in JWT is added to the BasicPolicy.SessionLink field of the quote. - When a consumer attempts to retrieve previously created quote, a JWT is generated for the
new session and then the portal requests the Quote Number and the
Zip Code associated with the quote. The portal calls
POST /clients/{clientId}/sessions
to create a new session and then it callsPUT /applications/updateSessionLinkRequest
to validate the request. After InsuranceNow validates the request, it updates the BasicPolicy.SessionLink field of the quote with the identifier of the latest JWT.
Note: The JWT has a timeout that is set by Guidewire Cloud Services. When the timeout associated
with the JWT has expired, the portal returns the consumer to the landing page where the
consumer can either start a new quote or retrieve an existing quote.