adds support for mongo-oidc#32
Conversation
6547c1b to
e189b0f
Compare
Ilya Epelbaum (IlyaEp)
left a comment
There was a problem hiding this comment.
Thanks for contributing! I’ll have another look after we address or discuss the current issues
version update adds support for mongo-oidc
9e83c89 to
1d9da3c
Compare
version update adds support for mongo-oidc
…/mongo-oidc # Conflicts: # build.gradle # src/main/java/com/dbschema/MongoJdbcDriver.java
|
Updated the PR. Sorry for the delay, I finally had time to come back to this. |
|
Ilya Epelbaum (@IlyaEp) can we get this to release ? |
|
and also thank you Juan Tenorio Arzola (@xolotlatoani) |
|
Updated to use a random port, cache the tokens to re-use across sessions, and added a landing page for when the user completes the flow |
|
Enterprise user here, we have to use other platforms(MongoDB Compass) just because this feature is missing in Datagrip. Do you have a planned release date? |
|
Sorry for the long delay with the review |
|
Updated to address comments |
Anvar Ramazanov (anvar-ramazanov)
left a comment
There was a problem hiding this comment.
Hi, sorry for the long delay in getting back to you. I really appreciate your contribution and the effort you put into it. I’ve left a couple of comments as well, but overall I’m very grateful for your work. Thank you!
a833bd3 to
1bf2481
Compare
|
updated once more. |
Anvar Ramazanov (anvar-ramazanov)
left a comment
There was a problem hiding this comment.
Let me also check how it works in IJ/DG, I'll try to get back as soon as I can
|
Juan Tenorio Arzola (@xolotlatoani) I tested the driver in DataGrip and the OIDC flow works overall, but I ran into one compatibility issue with the callback redirect URI. Right now the driver uses a random local port for the OIDC callback. Some providers may not support wildcard matching for random redirect ports. I tested this with Keycloak, and it rejects the redirect URI unless the exact I think it would be useful to add a setting like OIDC_CALLBACK_PORT, so users can configure a stable callback port when their IdP requires an exact redirect URI. We could keep the current random-port behavior as the default, or UPD: |
I added a new option OIDC_CALLBACK_PORT with a default value of 27097. Also made the host dynamic based on a config flag that defaults to I had an issue with the new change that updated the java version to v21. I could not get Datagrip to load it. Is Datagrip being uptaded to use java 21? |
|
Juan Tenorio Arzola (@xolotlatoani) with which version of DataGrip did you test? AFAIK it should be OK with the last one. Btw are you ok if I add some code to better handle cache and handle certificates for https in IDE? But I probably do in another PR. Now the PR looks good to me, but the one thing still annoy me. On Windows it could be a problem to use cmd.exe with URLs that contains |
NVM, I ended up changing the VM home path in the driver to get my recent changes working. I'm totally good with whatever tweaks or changes you guys suggest! As for the wrappers, I really wanted to use them with Java desktop actions instead of relying on cmd or open commands. Since they kept failing for me, I just left the current approach as a backup. Happy to collaborate on getting the wrappers working if you have any tips. |
No description provided.