The Token Handler Pattern: OpenID Connect for Single Page Apps

  Рет қаралды 3,182

Curity

Curity

Күн бұрын

Пікірлер: 2
@autumnchills2317
@autumnchills2317 Жыл бұрын
What if the session ID expires? How will the SPA request to get a new a session ID?
@Curity
@Curity Жыл бұрын
The SPA’s session with APIs is represented by an encrypted HTTP-only cookie referencing the access token. The access token typically expires every 15 minutes or so. The SPA must initiate token refresh when this occurs, using a refresh token stored in another secure cookie. The SPA can do the refresh before expiry on a background timer if required. Eventually the refresh token will expire, and the SPA must redirect the user to re-authenticate. The Curity SPA code example shows how to do this: github.com/curityio/spa-using-token-handler/blob/main/spa/src/api/apiClient.ts#L29
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Session Vs JWT: The Differences You May Not Know!
7:00
ByteByteGo
Рет қаралды 301 М.
An Illustrated Guide to OAuth and OpenID Connect
16:36
OktaDev
Рет қаралды 624 М.
ID Tokens VS Access Tokens: What's the Difference?
8:38
OktaDev
Рет қаралды 187 М.
OAuth 2.0 - Demonstrate Proof-of-Possession
21:27
Sascha Preibisch
Рет қаралды 1,6 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН