Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
Implementation-IdentityServer4
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alan Farhadi
Implementation-IdentityServer4
Commits
8d6b9e82
Commit
8d6b9e82
authored
May 30, 2020
by
alan.f
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add-RefreshAccessToken
parent
d873090f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
Configuration.cs
IdentityServer/Configuration.cs
+1
-0
HomeController.cs
MvcClient/Controllers/HomeController.cs
+1
-1
Startup.cs
MvcClient/Startup.cs
+2
-1
No files found.
IdentityServer/Configuration.cs
View file @
8d6b9e82
...
...
@@ -54,6 +54,7 @@ namespace IdentityServer
},
//puts all the claims in the id token
//AlwaysIncludeUserClaimsInIdToken=true,
AllowOfflineAccess
=
true
,
RequireConsent
=
false
}
};
...
...
MvcClient/Controllers/HomeController.cs
View file @
8d6b9e82
...
...
@@ -38,7 +38,7 @@ namespace MvcClient.Controllers
var
result
=
await
GetSecret
(
accessToken
);
//
await RefreshAccessToken();
await
RefreshAccessToken
();
return
View
();
}
...
...
MvcClient/Startup.cs
View file @
8d6b9e82
...
...
@@ -39,8 +39,9 @@ namespace MvcClient
config
.
Scope
.
Add
(
"rc.scope"
);
config
.
Scope
.
Add
(
"ApiOne"
);
config
.
Scope
.
Add
(
"ApiTwo"
);
config
.
Scope
.
Add
(
"offline_access"
);
}
);
services
.
AddHttpClient
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment