RantirAI / rantir-cloud-go

Official Rantir Personal AI Dashboard Builder (Not for Commercial Uses)
https://rantir.com
Other
0 stars 0 forks source link

Solve SSO #2

Closed Yakito closed 5 months ago

Yakito commented 6 months ago

@farreledwin any idea why we only see "password" in the menu here instead of all the options like they have in their documentation?

Image

https://docs.nocobase.com/handbook/auth-saml

Yakito commented 6 months ago

I tried installing the plugin here - https://www.npmjs.com/package/@nocobase/plugin-saml?activeTab=readme but I am getting some errors with dependencies

Image

Did you try any of this? @farreledwin

farreledwin commented 6 months ago

I've never tried it, maybe that's called premium plugin for SSO? @Yakito

farreledwin commented 6 months ago

This is current progress for SSO / login seamless @Yakito :

I replaced the SSO flow with the following:

Sorry for the delay!

Yakito commented 6 months ago

Thank you let’s talk about this on Monday!

On Fri, May 24, 2024 at 6:04 PM Edwin Farrel Juniawan < @.***> wrote:

This is current progress for SSO / login seamless @Yakito https://github.com/Yakito :

  • try to make API for receiving callback from rantir-SaSS (not success) still difficult to find way how to make new API endpoint on nocobase. So, i skip this way

I replaced the SSO flow with the following:

  • After signup / signin to rantir-SaSS, call API login to nocobase from rantir-SaSS for receive token from nocobase (Progress 90%)
  • Next, we use token to passing as query param to login page nocobase, nocobase will set the token as cookie and redirect to admin page nocobase (need modify nocobase code) (Progress 75%)

Sorry for the delay!

— Reply to this email directly, view it on GitHub https://github.com/RantirAI/rantir-cloud-go/issues/2#issuecomment-2130354184, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHSJFKDOUSJPCX43GSHBWDZD6TOLAVCNFSM6AAAAABIICZTDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZQGM2TIMJYGQ . You are receiving this because you were mentioned.Message ID: @.***>

farreledwin commented 6 months ago

Hi @Yakito , happy monday! so what do you think about this? is it correct approach? or do you have other thoughts?

Let me know!

Yakito commented 6 months ago

Is this pushed to production? Anywhere where I can test this? Thanks a lot.

farreledwin commented 6 months ago

no its not in production, i mean if you okay with this approach, i will complete that and upload to production @Yakito

Yakito commented 6 months ago

so even though its not "ideal" we can totally test it and see how smooth it is for the user. If the experience is flawless then we can totally use an approach like this for v1. while we dig a little dipper into sso.

farreledwin commented 6 months ago

HI @Yakito , for login seamless i already make the demo, you can watch on this link : https://www.loom.com/share/9e4ade0b3e6a4e07b90c7627b8b287b1

Since the server has been changed, i need to configure the server to upload this progress to server, will let you know if already done!

Let me know your thoughts!

Yakito commented 6 months ago

perfect!!! thanks a lot!

I believe next step here will be to change the login screen, so it doesn't flash before sending the user to the main application

Yakito commented 5 months ago

@farreledwin should I mark this as resolved?

farreledwin commented 5 months ago

Yes! @Yakito