-
Notifications
You must be signed in to change notification settings - Fork 100
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
IdentityToken.IsExpired is always true #630
Comments
Thanks for reporting this problem. I think you may be right that it should instead being using |
I'm having trouble reproducing the problem. Would you please supply a bit more information:
|
Oh! Wow, I did not expect that their cloud would send a non-iso datetime for expires. That's why I wasn't able to reproduce, since vanilla openstack and rackspace API's both the ISO 8601 format, e.g. I'll see what I can do to support that... |
I don't have access to an OVH public cloud instance to test against. Can you send me a sample identity response? Remove sensitive info from the response (such as the username, token, and ip addresses), and either post it back here or even better email it directly to me carolyn.vanslyck@rackspace.com. I'll use that for my tests. Here is an example from the OVH docs showing how to use curl to request a token. Funny, in their docs they show a ISO formatted date in the response, so I'm really curious what's going on! 😄
|
@carolynvs : I sent an email to your email address ( carolyn.vanslyck@rackspace.com) with sensitive information. |
Thanks for the info! I am able to reproduce and am working on a fix today. |
Wow, this has been a bug for quite a while. Here's a ⭐ for finding it and helping get it fixed! You can get the fix in v1.7.6 on nuget. |
It works as expected now. |
Hi guys,
Thank you for reviewing my reported issue.
I have a problem with checking IdentityToken.IsExpired flag. It is always True if the date time format of workstation is not the same with the expires value returned by server.
I got problem with
https://github.com/openstacknetsdk/openstack.net/blob/develop/src/corelib/Core/Domain/IdentityToken.cs
In this file : https://github.com/openstacknetsdk/openstack.net/blob/develop/src/corelib/Core/Domain/IdentityToken.cs
-Should the expires value be in DateTime?
-and when checking the IsExpired, should consider about the Culture when "TryParse"?
Thank you,
hapthien
The text was updated successfully, but these errors were encountered: