O365 SSO with Google - Getting AADSTS20001 error

I read the post “Signing into Microsoft Office 365 with Google Apps” at

Having a few trials to tweak the rule, now I come to a point reaching the MS page with error:
“Sign in
Sorry, but we’re having trouble signing you in.
AADSTS20001: Signin response message does not contain an issued token.”

Any insight?

resolved.
some bugs in the Rules in the post.
for the function assignOffice365License(), should add method:‘POST’ in options, or else it won’t work.

but now there is another problem.
See:

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?