Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

go-astilectron-oauth-demo

An oauth demo with go-astilectron and vue supported(using github oauth as an example)

References to the issue How to use OAuth.

Usage:


$ cd src
$ yarn
$ npm run build
$ cd ..
$ astilectron-bundler -v

Notice!!! Make sure that your go-astilectron-bundler and the go-astilectron is the latest version(include the go/bin/astilectron-bundler)

Here is the result of go-astilectron-oauth-demo.gif:

go-astilectron-oauth-demo.gif

Use your own github oauth app:

You should create your own github oauth app like this example:

github-oauth-app.png

and modify message.go:


const (
  ClientId                 = "your oauth app client_id"
  ClientSecret             = "your oauth app client_secret"
  RedirectUri              = "http://localhost"
  AuthorizedCodeURL        = "https://github.com/login/oauth/authorize"
  AuthorizedTokenURL       = "https://github.com/login/oauth/access_token"
)

Then, run the command:

$ astilectron-bundler -v

About

an oauth demo with go-astilectron

Resources

License

Releases

No releases published

Packages

No packages published