Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GÉANT Service Orchestrator GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator GUI
Commits
e6fdd6f1
Commit
e6fdd6f1
authored
9 months ago
by
Mohammad Torkashvand
Browse files
Options
Downloads
Patches
Plain Diff
add mising NEXTAUTH_TOKEN_ENDPOINT
parent
ee46b705
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!34
add refresh token logic
Pipeline
#88838
passed
9 months ago
Stage: tsc_lint_and_test
Stage: build
Stage: trigger_jenkins_build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.env.local.example
+1
-0
1 addition, 0 deletions
.env.local.example
pages/api/auth/[...nextauth].ts
+1
-1
1 addition, 1 deletion
pages/api/auth/[...nextauth].ts
with
2 additions
and
1 deletion
.env.local.example
+
1
−
0
View file @
e6fdd6f1
...
...
@@ -17,6 +17,7 @@ NEXTAUTH_CLIENT_SECRET="YOUR_OIDC_CLIENT_SECRET"
NEXTAUTH_SECRET="SOhxHLn53mV7ML7y8L6rL5oOQxOVb0V4p2Ez0ZSIuOs=" # openssl rand -base64 32
NEXTAUTH_ISSUER="https://proxy.aai.geant.org"
NEXTAUTH_WELL_KNOWN_OVERRIDE="https://proxy.aai.geant.org/.well-known/openid-configuration"
NEXTAUTH_TOKEN_ENDPOINT="https://proxy.aai.geant.org/OIDC/token"
# docker-compose variables
# KEYCLOAK_ADMIN=admin
...
...
This diff is collapsed.
Click to expand it.
pages/api/auth/[...nextauth].ts
+
1
−
1
View file @
e6fdd6f1
...
...
@@ -21,7 +21,7 @@ async function refreshAccessToken(token: JWT): Promise<JWT> {
refresh_token
:
token
.
refreshToken
as
string
,
});
const
response
=
await
fetch
(
process
.
env
.
TOKEN_ENDPOINT
!
,
{
const
response
=
await
fetch
(
process
.
env
.
NEXTAUTH_
TOKEN_ENDPOINT
!
,
{
method
:
'
POST
'
,
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment