unable to login with 2020.3.4 waykclient

avatar

im having nothing but problems now with waykbastion 2020.3.4 and waykclient 2020.3.4

i am unable to login to get the client app after logging out by accident,

the login page opens up the browser fine, i can login fine, it tells me to close the tab but nothing happens in waykclient?

just sits there

the only logs i have from waykclient are below

[2021-01-15] [19:14:47:776] [19287:19435dc0] [TRACE][NowI18n] - NowT(wndOAuth.lblStatusInitializing) string not found (override)
[2021-01-15] [19:14:47:776] [19287:19435dc0] [TRACE][NowI18n] - wndOAuth.lblStatusInitializing -> Initializing...
[2021-01-15] [19:14:47:783] [19287:19435dc0] [TRACE][NowI18n] - NowT(wndOAuth.lblStatusInitializing) string not found (override)
[2021-01-15] [19:14:47:783] [19287:19435dc0] [TRACE][NowI18n] - wndOAuth.lblStatusInitializing -> Initializing...
[2021-01-15] [19:14:47:786] [19287:0b64c000] [DEBUG][NowCurl] - curl url: https://remote.xxxxx.com:443/.well-known/configuration (proxy: )
[2021-01-15] [19:14:47:883] [19287:0b64c000] [DEBUG][NowOAuth] - got a token for https://remote.xxxxx.com/lucid with a ref count of 2
[2021-01-15] [19:14:47:884] [19287:0b64c000] [DEBUG][NowOAuth] - populating token with device_code from disk
[2021-01-15] [19:14:47:884] [19287:0b64c000] [DEBUG][NowCurl] - curl url: https://remote.xxxxx.com/lucid/auth/device-authorization (proxy: )
[2021-01-15] [19:14:47:899] [19287:0b752000] [DEBUG][NowOAuth] - invalid access token, requesting a new one
[2021-01-15] [19:14:47:899] [19287:0b752000] [DEBUG][NowCurl] - curl url: https://remote.xxxxx.com/lucid/openid/.well-known/openid-configuration (proxy: )
[2021-01-15] [19:14:47:911] [19287:0b752000] [DEBUG][NowOAuth] - requesting access token from https://remote.xxxxx.com/lucid/auth/token using refresh token
[2021-01-15] [19:14:47:911] [19287:0b752000] [DEBUG][NowCurl] - curl url: https://remote.xxxxx.com/lucid/auth/token (proxy: )
[2021-01-15] [19:14:47:926] [19287:0b752000] [WARN][NowOAuth] - request to https://remote.xxxxx.com/lucid/auth/token returned: 'invalid_grant' (Expired token)
[2021-01-15] [19:14:47:926] [19287:0b752000] [ERROR][NowOAuth] - IsAuthorizationPending error received: invalid_grant
[2021-01-15] [19:14:47:963] [19287:19435dc0] [TRACE][NowI18n] - NowT(wndOAuth.lblStatusLoggingIn) string not found (override)
[2021-01-15] [19:14:47:963] [19287:19435dc0] [TRACE][NowI18n] - wndOAuth.lblStatusLoggingIn -> Please <a href="%s">login</a> using your web browser...

also i am unable to rollback either to the old version 2020.3.3 of waykbastion (forgot to do a snapshot)
because when i try that, it then doesnt even let me login at the login page it just generates an error

{"timestamp":"Jan 15 19:00:09.938","level":"ERROR","message":"Unable to perform find in user collection: RepositoryError(MongoError(Error { kind: Io(Custom { kind: Other, error: DeserializationError { message: \"missing field `address`\" } }), labels: [] }))","target":"lucid::server::controllers::auth::account","span":{"id":"53c45ccf-6b26-4e1e-b4dc-e859f55aff44","method":"POST","path":"/auth/get-account","name":"request"}}
{"timestamp":"Jan 15 19:00:09.938","level":"WARN","status":500,"duration_ms":"1.465","target":"lucid::server::middlewares::logging","span":{"id":"53c45ccf-6b26-4e1e-b4dc-e859f55aff44","method":"POST","path":"/auth/get-account","name":"request"}}


Regards

Simon

All Comments (8)

avatar

Hey Simon

I think you should leave your Wayk Bastion install on 2020.3.4. I'm not sure if a rollback is possible or desirable, I'd have to punt that to the Wayk Bastion team; but from my side - you want to be on the latest version.

Please start from the top like this:

  • Close out WaykClient.app (and WaykAgent, if you're running it)
  • Verify there's no login issue with the web UI (i.e. maybe log out and back in again)
  • Locate and rename this file:


~/Library/Application Support/Wayk/den/{domain}/oauth.cfg

Couple things to note there:

  • Library is a hidden directory by default (I'm sure you know this already), so you'll need to either unhide it or navigate directly using [Command]+[Shift]+G or "Go to folder" in the Finder "Go" menu
  • {domain} will be your Wayk Bastion realm (e.g. for public Wayk Den, the folder is wayk.net)
  • Rename the file rather than delete is; e.g. rename it to oauth.cfg.old or something


The start up your Wayk Client again, and try to login.

Thanks and kind regards,

Richard Markievicz

avatar

Hi,

I can confirm, you will not be able to rollback to a previous version if you have installed 2020.3.4, database model has changed and will not be compatible with both versions. We would like to enforce a backup when there is an update but we don't have a such feature yet. It should be improved soon or later, but for now, it has to be done manually.

Best regards,

François Dubois

avatar

Hi Richard,

ok renaming the oauth.cfg fixed the login issue for waykclient!

it would seem when i click logout, nothing happens to the file,

i would of expected waykclient to delete the file or rename it or something?

regards

Simon

avatar

Hi Simon

The file contains some json if you are logged in; but after logout it should just be an empty json document (i.e. "{}"). You can open it in any text editor to verify - that is the behaviour I see with Wayk Client 2020.3.4 at least.

Thanks and kind regards,

Richard Markievicz

avatar

Hi Richard

from what I observed, when I clicked log out in the Wayk client, nothing happened to the oauth.cfg?

all it’s content was filled with stuff still?

It wasn’t even blank?

bug maybe for Mac version?

i haven’t checked windows version yet but will do soon

Regards

simon

avatar

Hi Simon

Strange - the failure to remove the OAuth tokens from that file is what caused your issue with logging out.

However, I'm not able to reproduce it with Wayk Client 2020.3.4 on Big Sur (11.1). Can you confirm your versions are the same? We'll need to look into it.

Thanks and kind regards,

Richard Markievicz

avatar

Hi Richard

i guess i must be having one of those fridays!

i now cant replicate the issue! same as my other issue where RDM was crashing, then not crashing!

every time i click logout the oauth.cfg is cleared out and replaced with {} as you said it should.

im just trying to fix my jet relay as that seems to of goofed up now? when i upgraded, not sure how

thanks for the help so far!

Regards

Simon

avatar

Hi Simon

Strange indeed. Wayk Client 2020.3.3 and 3.4 saw a lot of changes around how we handle OAuth; it's very possible you hit an edge case there. If you notice the behaviour again please post back here.

Thanks and kind regards,

Richard Markievicz