Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to use sessionType=refresh_token #4975

Merged
merged 20 commits into from
Jan 14, 2025
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e0256ef
Update @authgear/web to latest version
louischan-oursky Jan 10, 2025
6ef0119
Use accounts.portal.localhost:3100 to access accounts
louischan-oursky Jan 9, 2025
18ebe64
Update the config of portal application to be compatible with refresh…
louischan-oursky Jan 9, 2025
4f04372
Make network calls compatible with refresh token
louischan-oursky Jan 9, 2025
79190dc
Move logout to Authenticated.tsx
louischan-oursky Jan 9, 2025
11afbdd
Move configureAuthgear to Authenticated.tsx
louischan-oursky Jan 10, 2025
09f5d4f
Introduce AuthenticatedContext that support both sessionType
louischan-oursky Jan 10, 2025
5cb5e56
Only mount SessionInfoMiddleware in routes that need session
louischan-oursky Jan 10, 2025
7ca56e9
Add envvar AUTHGEAR_WEB_SDK_SESSION_TYPE
louischan-oursky Jan 10, 2025
190e1d4
Use sessionType from system config
louischan-oursky Jan 10, 2025
5892e4b
Support AUTHGEAR_WEB_SDK_SESSION_TYPE in SessionInfoMiddleware
louischan-oursky Jan 10, 2025
c2de9e4
Re-organize id token and at+jwt generation code
louischan-oursky Jan 13, 2025
80e0e34
Move sid handling to oauth
louischan-oursky Jan 13, 2025
10da048
Make IssueAccessGrant and EncodeAccessToken take options
louischan-oursky Jan 13, 2025
022960e
Include auth_time and amr in at+jwt
louischan-oursky Jan 13, 2025
655cdb9
Read amr in at+jwt
louischan-oursky Jan 13, 2025
a8dafda
Read auth_time in at+jwt
louischan-oursky Jan 13, 2025
2882363
Split 8000 and 8010 into 8000,8001,8010,8011
louischan-oursky Jan 13, 2025
5878871
Upgrade @authgear/web to 2.12.0
louischan-oursky Jan 13, 2025
8143b95
Change console.log to console.info and use substitution string
louischan-oursky Jan 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update @authgear/web to latest version
  • Loading branch information
louischan-oursky committed Jan 13, 2025
commit e0256ef8ce3f70b162fcf2b5f4f3da481467c666
14 changes: 7 additions & 7 deletions portal/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion portal/package.json
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@
},
"dependencies": {
"@apollo/client": "3.8.7",
"@authgear/web": "1.0.1",
"@authgear/web": "^2.11.0",
"@elgorditosalsero/react-gtm-hook": "2.7.2",
"@fluentui/font-icons-mdl2": "^8.5.55",
"@fluentui/merge-styles": "^8.6.13",
4 changes: 2 additions & 2 deletions portal/src/graphql/portal/AcceptAdminInvitationScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useCallback, useContext, useMemo } from "react";
import authgear from "@authgear/web";
import authgear, { PromptOption } from "@authgear/web";
import { Text, DefaultEffects } from "@fluentui/react";
import {
Context,
@@ -175,7 +175,7 @@ const AcceptAdminInvitationScreen: React.VFC =
authgear
.startAuthentication({
redirectURI,
prompt: "login",
prompt: PromptOption.Login,
state: encodeOAuthState({
originalPath,
}),
4 changes: 2 additions & 2 deletions portal/src/graphql/portal/Authenticated.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect } from "react";
import authgear from "@authgear/web";
import authgear, { PromptOption } from "@authgear/web";
import { useNavigate } from "react-router-dom";
import ShowError from "../../ShowError";
import ShowLoading from "../../ShowLoading";
@@ -31,7 +31,7 @@ const ShowQueryResult: React.VFC<ShowQueryResultProps> =
authgear
.startAuthentication({
redirectURI,
prompt: "login",
prompt: PromptOption.Login,
state: encodeOAuthState({
originalPath,
}),