You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
I'm running the Resource Owner Flow with Refresh Token sample against the Identity Server and have a query about calling the IdentityController without first refreshing the token. My modified Main method is as follows:
static void Main(string[] args)
{
_oauth2 = new OAuth2Client(
new Uri(Constants.TokenEndpoint),
"roclient",
"secret");
var response = RequestToken();
ShowResponse(response);
// Console.ReadLine();
int i = 0;
while (true)
{
//response = RefreshToken(response.RefreshToken);
//ShowResponse(response);
// Console.ReadLine();
CallService(response.AccessToken);
i += 5000;
Console.WriteLine("Sleeeping for {0} seconds.", (i / 1000));
Thread.Sleep(i);
}
}
I eventually get a 401 response returned after the thread has gone to sleep for 60 seconds. My question is why 60 seconds? My Client configuration in IdentityServer is as follows:
I'm looking to configure this flow to simulate the current behaviour of a Forms Authentication application, i.e. a sliding 30 minute expiration where the user would have to re-authenticate after 30 minutes of inactivity. Is this possible with this flow and, if so, would we be required to refresh the token prior to each new resource call?
Well - I guess you can use it like this. The expires_in response parameter tells you how long the access token will be valid. Then you know when you have to refresh. If refresh fails the user needs to re-authenticate.
Hi,
I'm running the Resource Owner Flow with Refresh Token sample against the Identity Server and have a query about calling the IdentityController without first refreshing the token. My modified Main method is as follows:
I eventually get a 401 response returned after the thread has gone to sleep for 60 seconds. My question is why 60 seconds? My Client configuration in IdentityServer is as follows:
Thanks,
Stuart.
The text was updated successfully, but these errors were encountered: