aerogear / datasync-starter

GraphQL Low Code React and Node.js DataSync Application template
http://graphback.dev
MIT License
32 stars 38 forks source link

Enable Capacitor #49

Closed wtrocki closed 4 years ago

wtrocki commented 5 years ago

Motivation

Enabling Ionic Capacitor for Ionic App. https://capacitor.ionicframework.com/docs/

Expected outcome

Possible actions

Contact

https://aerogear.org https://getcapacitor.slack.com https://twitter.com/wojtroken

cjohn001 commented 4 years ago

Sounds great, I am wondering, does aerogear provide a plugin for capacitor for SSO? The only nice solution I found so far is a plugin from ionic for enterprise customers which is not available as open source. https://ionicframework.com/blog/ionic-auth-connect-single-sign-on-made-easy/

And the alternative solution I came up with so far is via InAppBrowser. But I do not have it on capacitor working yet (cordova only) and it is a pain for ios devices to be set up, because the redirect domain requires a webserver running on a different subdomain than the redirect url as it needs to provide a file with developer credentials in order for the redirect back into the app to work.

https://medium.com/cofinpro/single-sign-on-mit-cordova-und-keycloak-deb3f250a961

wtrocki commented 4 years ago

@cjohn001 Last time I have checked standard keycloak.js was working with capacitor using default adapter. Using cordova adapter will also work but it will require installing InAppBrowser plugin from cordova or mapping cordova.InAppBrowser.open to capacitor Browser.open.

All depenends on auth flow you would like to implement etc. If you reach us on chat we can provide more details or even add capacitor to this repository

wtrocki commented 4 years ago

Closed issue as it it very generic for the moment. We need individual elements on roadmap for:

wtrocki commented 4 years ago

@secondsun For push roadmap