Skip to content
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

token methode as changed #27

Closed
dmachadol opened this issue Oct 19, 2023 · 8 comments
Closed

token methode as changed #27

dmachadol opened this issue Oct 19, 2023 · 8 comments

Comments

@dmachadol
Copy link

in def __force_login(self, recursive=False):

change:
self.__context = '{"mode":"PROD","fwuid":"LU1oNENmckdVUXNqVGtLeG5odmktZ2Rkdk8xRWxIam5GeGw0LU1mRHRYQ3cyNDYuMTUuMS0zLjAuNA","app":"siteforce:communityApp","loaded":{"APPLICATION@markup://siteforce:communityApp":"8srl03VqKMnukxbiM5O73w"},"dn":[],"globals":{},"uad":false}'

by:
self.__context = '{"mode":"PROD","fwuid":"LU1oNENmckdVUXNqVGtLeG5odmktZ2Rkdk8xRWxIam5GeGw0LU1mRHRYQ3cyNDYuMTUuMS0zLjAuNA","app":"siteforce:communityApp2","loaded":{"APPLICATION@markup://siteforce:communityApp2":"8srl03VqKMnukxbiM5O73w"},"dn":[],"globals":{},"uad":false}'

now authenticate but still have issues

@moralespetit
Copy link
Contributor

doesn't work for me :
r.text :
{"event":{"descriptor":"markup://aura:invalidSession","attributes":{"values":{}},"eventDef":{"descriptor":"markup://aura:invalidSession","t":"APPLICATION","xs":"I","a":{"newToken":["newToken","aura://String","I",false]}}},"exceptionMessage":"0DM1o000000g0SG","exceptionEvent":true}

there is not the ['events'][0]['attributes']['values']['url']

@dmachadol
Copy link
Author

try, with:
self.__context = '{"mode":"PROD","fwuid":"MDM0c01pMVUtd244bVVLc2VRYzQ2UWRkdk8xRWxIam5GeGw0LU1mRHRYQ3cyNDYuMTUuMi0zLjAuNA","app":"siteforce:communityApp","loaded":{"APPLICATION@markup://siteforce:loginApp2":"gYLnBR7JPOzHCaMCDxTL3w"},"dn":[],"globals":{},"uad":false}'

@moralespetit
Copy link
Contributor

@dmachadol WORKS !! thank you so much
Will we need to change this context every week?

@dmachadol
Copy link
Author

dmachadol commented Oct 19, 2023 via email

@trocotronic
Copy link
Owner

I used loginApp in the past and some methods were rejected. I am not sure what happens with communityApp2 or loginApp2 but there should be a clever way to catch up the right context somehow.

@bepece1
Copy link

bepece1 commented Oct 20, 2023

try, with: self.__context = '{"mode":"PROD","fwuid":"MDM0c01pMVUtd244bVVLc2VRYzQ2UWRkdk8xRWxIam5GeGw0LU1mRHRYQ3cyNDYuMTUuMi0zLjAuNA","app":"siteforce:communityApp","loaded":{"APPLICATION@markup://siteforce:loginApp2":"gYLnBR7JPOzHCaMCDxTL3w"},"dn":[],"globals":{},"uad":false}'

With this context, works righly

Thank for share

@moralespetit
Copy link
Contributor

Hi again,
the context #27 (comment) is not woking more for me .

I `r = self.__get_url(self.__dashboard+'r=1&other.LightningLoginForm.login=1',post=data)
returns :
*/{"event":{"descriptor":"markup://aura:clientOutOfSync",
"eventDef":{"descriptor":"markup://aura:clientOutOfSync","t":"APPLICATION","xs":"I"}},
"exceptionMessage":"Framework has been updated. Expected: MDM0c01pMVUtd244bVVLc2VRYzQ2UWRkdk8xRWxIam5GeGw0LU1mRHRYQ3cyNDYuMTUuMy0zLjAuNA
Actual: MDM0c01pMVUtd244bVVLc2VRYzQ2UWRkdk8xRWxIam5GeGw0LU1mRHRYQ3cyNDYuMTUuMi0zLjAuNA","exceptionEvent":true}/ERROR/

`

So , I changed the context to :
self.__context = '{"mode":"PROD","fwuid":"MDM0c01pMVUtd244bVVLc2VRYzQ2UWRkdk8xRWxIam5GeGw0LU1mRHRYQ3cyNDYuMTUuMy0zLjAuNA","app":"siteforce:communityApp","loaded":{"APPLICATION@markup://siteforce:loginApp2":"gYLnBR7JPOzHCaMCDxTL3w"},"dn":[],"globals":{},"uad":false}'
and works fine again

Do you think that is possible to do this context change dinamic? getting the new r['Actual'] context code ?

Best regards

@trocotronic
Copy link
Owner

Yep, I pushed a commit with the new fwuid.

I'll try to figure out how to take the correct context. Any contribution is welcomed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants