-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
oauth updates #4036
oauth updates #4036
Conversation
@bradymiller Do you want me to just pull/push from/to this PR or do you want dueling PRs? Also, to test the id/access token to see what claims/scopes are set use https://jwt.io/ you can also test the signature there by pasting the public key that was used to generate the private key of token.
|
@sjpadgett , Regarding PR, just do whatever is easiest for you (use my PR or your own PR). I'm happy to adapt my PR whenever needed. |
Just let me know if you will be using my PR (then I'll hold off on pushing anything to it until you give the all clear :) ). |
Another option is to just bring this PR into codebase (if so, would just take me an hour or so to do a extensive code review to make sure i didn't do anything stupid :) ). |
Will break master until I fix session which i'm about an hour from finishing that then testing. I can just push to you then put in master. |
Almost done. I have working but I think I should encrypt session data store in trusted user. You want to do or me, I don't care? |
happy to do that. lets see what it is storing first. |
I think we'll be okay. I pulled sensitive unneeded session vars. I'll push to you as soon as I get organized |
Hope I got it. Seems to work but limited testing so you can move on but here is an access token decode;
Guess I could have did one with api scopes but anyway, there it is. |
this is testing well and code looks sane. bringing in! |
fixes #4030
@sjpadgett , this is still a work in progress (functional for both users and patient roles, but needed to hard-code the user_role (
openemr/src/RestControllers/AuthorizationController.php
Lines 674 to 677 in ad12c9c
Up For Grabs demo for this PR is here:
https://www.open-emr.org/wiki/index.php/Development_Demo#Delta_-_Up_For_Grabs_Demo
(dang, gotta update the demo farm to use a more recent version of alpine or ubuntu to get to php version 7.3!)