https://github.com/oktadev/okta-electron-react-example
Okta Example with Electron, React, and GraphQL.
https://github.com/oktadev/okta-electron-react-example
electron graphql react typeorm
Last synced: 3 months ago
JSON representation
Okta Example with Electron, React, and GraphQL.
- Host: GitHub
- URL: https://github.com/oktadev/okta-electron-react-example
- Owner: oktadev
- License: apache-2.0
- Created: 2018-05-31T17:31:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-05T04:08:31.000Z (about 8 years ago)
- Last Synced: 2025-01-14T11:42:38.027Z (over 1 year ago)
- Topics: electron, graphql, react, typeorm
- Language: JavaScript
- Homepage:
- Size: 557 KB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Okta Example with Electron, React, and GraphQL.
This is an attempt to develop an app that runs in [Electron](https://electronjs.org/) and authenticates with [Okta](https://developer.okta.com).
After getting the Sign-In Widget working and the app developed, I ran into [AuthSdkError: Unable to parse a token from the url](https://github.com/okta/okta-oidc-js/issues/121#issuecomment-394123880). It seems the postMessage logic that the Sign-In Widget uses doesn't work in Electron.
Then I tried the code in this Gist: [PKCE flow in Electron](https://gist.github.com/adeperio/73ce6680d4b80b45e624ab62bacfbdca). I got it mostly working, but after posting the code, Okta does a redirect and Electron says its invalid.
The last thing I tried is [AppAuth-JS Electron sample](https://github.com/googlesamples/appauth-js-electron-sample). I got this working with Okta and PKCE, but ran into [an issue](https://github.com/openid/AppAuth-JS/issues/60) when I tried to port it back to this project.