Skip to content
Discussion options

You must be logged in to vote

I resolved this issue , add an principal.SetAccessTokenLifetime call before SingIn.

principal.SetAccessTokenLifetime(TimeSpan.FromDays(1));

return SignIn(principal,OpenIddictServerAspNetCoreDefaults.AuthenticationScheme);

{"access_token":"...","token_type":"Bearer","expires_in":315360000,"scope":"offline_access"}

Replies: 10 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hishamco
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RockNHawk
Comment options

You must be logged in to vote
1 reply
@RockNHawk
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@hyzx86
Comment options

@hyzx86
Comment options

@RockNHawk
Comment options

@HengzheLi
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #7036 on September 08, 2020 04:57.